From 7fbc0405828a1d71b8a2ef0a14e2476adc1550cb Mon Sep 17 00:00:00 2001 From: Charlie Blake Date: Wed, 4 Jul 2018 14:35:42 +0100 Subject: Add variants for streamliner cmd line options --- src/main/game/search-state/game_state.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/main/game/search-state/game_state.h') diff --git a/src/main/game/search-state/game_state.h b/src/main/game/search-state/game_state.h index 78f1fb9..ecb8ace 100644 --- a/src/main/game/search-state/game_state.h +++ b/src/main/game/search-state/game_state.h @@ -26,12 +26,14 @@ class game_state { friend class state_printer; friend class test_helper; public: + enum class streamliner_options {NONE, AUTO_FOUNDATIONS, SUIT_SYMMETRY, BOTH}; + /* Constructors */ // Creates a game state representation from a JSON doc - game_state(const sol_rules&, const rapidjson::Document&, bool); + game_state(const sol_rules&, const rapidjson::Document&, streamliner_options); // Does the same from a seed - game_state(const sol_rules&, int seed, bool); + game_state(const sol_rules&, int seed, streamliner_options); // Does the same but with an initialiser list (useful for testing) game_state(const sol_rules&, std::initializer_list>); @@ -59,7 +61,7 @@ public: private: /* Constructors (& helper function) */ - explicit game_state(const sol_rules&, bool); + explicit game_state(const sol_rules&, streamliner_options); static std::vector gen_shuffled_deck(int, card::rank_t, bool); template static void shuffle(RandomIt, RandomIt, URBG&&); @@ -124,7 +126,7 @@ private: /* Game rules */ const sol_rules rules; - bool streamliners; + streamliner_options stream_opts; /* Pile references */ -- cgit v1.2.1