From 11ae4060730b3b4b21f6f44509cc509d36b7ac00 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Fri, 20 Feb 2026 01:22:06 +0100 Subject: [PATCH] add another preset --- include/states.hpp | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/include/states.hpp b/include/states.hpp index 3806681..af3fd5f 100644 --- a/include/states.hpp +++ b/include/states.hpp @@ -136,6 +136,16 @@ inline auto state_complex_4f() -> State { inline auto state_complex_4f_wc(const State &state) -> bool { return false; } +inline auto state_complex_5r() -> State { + return State("R6x6:31....12....1221......12..ba..1212..21..12....12......21.." + "....21..21...."); +} + +inline auto state_complex_5r_wc(const State &state) -> bool { + // R6x6:................................ba...................................... + return state.GetBlockAt(4, 2) == "ba"; +} + inline auto state_klotski() -> State { State s = State(4, 5, false); s.AddBlock(Block(0, 0, 1, 2, false)); @@ -157,12 +167,13 @@ inline auto state_klotski_wc(const State &state) -> bool { } std::vector generators{ - state_simple_1r, state_simple_2r, state_simple_3r, state_complex_1r, - state_complex_2r, state_complex_3r, state_complex_4f, state_klotski}; + state_simple_1r, state_simple_2r, state_simple_3r, + state_complex_1r, state_complex_2r, state_complex_3r, + state_complex_4f, state_complex_5r, state_klotski}; std::vector win_conditions{ state_simple_1r_wc, state_simple_2r_wc, state_simple_3r_wc, state_complex_1r_wc, state_complex_2r_wc, state_complex_3r_wc, - state_complex_4f_wc, state_klotski_wc}; + state_complex_4f_wc, state_complex_5r_wc, state_klotski_wc}; #endif