diff options
| author | Charlie Blake | 2018-07-04 14:36:36 +0100 |
|---|---|---|
| committer | GitHub | 2018-07-04 14:36:36 +0100 |
| commit | 0edeee6a85e7bf650652e8a07353d46e4de92d13 (patch) | |
| tree | f84aa2ae3c1a2c7e141a306c85932fda2fd91355 /src/main/game/search-state/game_state.h | |
| parent | Merge pull request #73 from thecharlesblake/fix-legal-move-bugs (diff) | |
| parent | Add variants for streamliner cmd line options (diff) | |
| download | metasol-0edeee6a85e7bf650652e8a07353d46e4de92d13.tar.gz metasol-0edeee6a85e7bf650652e8a07353d46e4de92d13.zip | |
Merge pull request #74 from thecharlesblake/sol-streamliner-variants
Sol streamliner variants
Diffstat (limited to 'src/main/game/search-state/game_state.h')
| -rw-r--r-- | src/main/game/search-state/game_state.h | 10 |
1 files changed, 6 insertions, 4 deletions
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<std::initializer_list<std::string>>); @@ -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<card> gen_shuffled_deck(int, card::rank_t, bool); template<class RandomIt, class URBG> 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 */ |
