diff options
| author | thecharlesblake | 2017-11-12 09:54:57 +0000 |
|---|---|---|
| committer | thecharlesblake | 2017-11-12 09:54:57 +0000 |
| commit | af1fa0716bbf21ffe6b03694351be85b7457dc2c (patch) | |
| tree | 2314ca55c53973775e3990c472976bf06ec5a0be /src/main/game/game_state.h | |
| parent | Simplify pile class & make const where possible (diff) | |
| download | metasol-af1fa0716bbf21ffe6b03694351be85b7457dc2c.tar.gz metasol-af1fa0716bbf21ffe6b03694351be85b7457dc2c.zip | |
Init piles in game_state & make get states const
Diffstat (limited to 'src/main/game/game_state.h')
| -rw-r--r-- | src/main/game/game_state.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/game/game_state.h b/src/main/game/game_state.h index 424c678..e856056 100644 --- a/src/main/game/game_state.h +++ b/src/main/game/game_state.h @@ -22,7 +22,7 @@ public: // Do the same from a 'rules' object game_state(int seed, const sol_rules&); - std::vector<game_state> get_next_legal_states(); + std::vector<game_state> get_next_legal_states() const; // NOTE: will only be evaluated after get_next_legal_states() is called bool is_solved() const; @@ -44,9 +44,9 @@ private: std::vector<pile> tableau_piles; std::vector<pile> cells; std::vector<pile> foundations; - pile waste; pile reserve; pile stock; + pile waste; pile hole; sol_rules rules; }; |
