From af1fa0716bbf21ffe6b03694351be85b7457dc2c Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Sun, 12 Nov 2017 09:54:57 +0000 Subject: Init piles in game_state & make get states const --- src/main/game/game_state.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/game/game_state.h') 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 get_next_legal_states(); + std::vector 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 tableau_piles; std::vector cells; std::vector foundations; - pile waste; pile reserve; pile stock; + pile waste; pile hole; sol_rules rules; }; -- cgit v1.2.1