diff options
| author | thecharlesblake | 2017-12-26 13:00:48 +0000 |
|---|---|---|
| committer | thecharlesblake | 2017-12-26 13:00:48 +0000 |
| commit | bf23d041cb9e7d5f1dcad6b26a93c43a69fce8bc (patch) | |
| tree | b899a68420e218ae117000553bd0051c2d1715fc /src/main/game/game_state.h | |
| parent | Rework basic deal-parser outline (diff) | |
| download | metasol-bf23d041cb9e7d5f1dcad6b26a93c43a69fce8bc.tar.gz metasol-bf23d041cb9e7d5f1dcad6b26a93c43a69fce8bc.zip | |
Refactor game state to prep for deal parse
Diffstat (limited to 'src/main/game/game_state.h')
| -rw-r--r-- | src/main/game/game_state.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/game/game_state.h b/src/main/game/game_state.h index 873ca6f..6c0b77b 100644 --- a/src/main/game/game_state.h +++ b/src/main/game/game_state.h @@ -18,9 +18,9 @@ class game_state { public: // Create a game state representation from a JSON doc - game_state(const rapidjson::Document&); + explicit game_state(const sol_rules&); // Do the same from a 'rules' object - game_state(int seed, const sol_rules&); + game_state(const sol_rules&, int seed); const std::vector<game_state> get_next_legal_states() const; bool is_solved() const; @@ -44,6 +44,7 @@ private: void print_top_of_piles(std::ostream&, const std::vector<pile>&) const; void print_top_of_pile(std::ostream&, const pile&) const; + sol_rules rules; std::vector<pile> foundations; std::vector<pile> cells; std::vector<pile> tableau_piles; @@ -51,7 +52,6 @@ private: pile stock; pile waste; pile hole; - sol_rules rules; }; |
