From f8fe9e35d6ccb76727f4037c921d0ccde6b7697e Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Fri, 20 Feb 2026 02:15:37 +0100 Subject: [PATCH] add more presets (century, super_century, new_century) --- include/config.hpp | 2 +- include/states.hpp | 31 +++++++++++++++++++++++++++++-- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/include/config.hpp b/include/config.hpp index 29be0d8..3efe971 100644 --- a/include/config.hpp +++ b/include/config.hpp @@ -3,7 +3,7 @@ #include -// #define PRINT_TIMINGS +#define PRINT_TIMINGS #define VERLET_UPDATE // #define WEB diff --git a/include/states.hpp b/include/states.hpp index b422bed..9c74c0f 100644 --- a/include/states.hpp +++ b/include/states.hpp @@ -175,15 +175,42 @@ inline auto state_klotski_wc(const State &state) -> bool { return state.GetBlockAt(1, 3) == "bb"; } +inline auto state_century() -> State { + return State("F4x5:11bb..1112....12..12....11....1121..21.."); +} + +inline auto state_century_wc(const State &state) -> bool { + return state.GetBlockAt(1, 3) == "bb"; +} + +inline auto state_super_century() -> State { + return State("F4x5:12111111..12bb..12........21..11....21.."); +} + +inline auto state_super_century_wc(const State &state) -> bool { + return state.GetBlockAt(1, 3) == "bb"; +} + +inline auto state_new_century() -> State { + return State("F4x5:12111111..12bb..12........21..11....21.."); +} + +inline auto state_new_century_wc(const State &state) -> bool { + // What kind of brain do you need for this??? + return state.state == "F4x5:21......1121..12bb..12........12111111.."; +} + 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_complex_5r, - state_complex_6r, state_klotski}; + state_complex_6r, state_klotski, state_century, state_super_century, + state_new_century}; 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_complex_5r_wc, state_complex_6r_wc, - state_klotski_wc}; + state_klotski_wc, state_century_wc, state_super_century_wc, + state_new_century_wc}; #endif