aboutsummaryrefslogtreecommitdiff
path: root/src/main/game_state.h
diff options
context:
space:
mode:
authorthecharlesblake2017-10-28 15:29:17 +0100
committerthecharlesblake2017-10-28 15:29:17 +0100
commit6a5a840f678aa78659b51ec647dcced4544c4a0b (patch)
treeb44dd9add90efd0586b48f4d6f1adecdd78b10eb /src/main/game_state.h
parentAdd rules class to represent solitaire type (diff)
downloadmetasol-6a5a840f678aa78659b51ec647dcced4544c4a0b.tar.gz
metasol-6a5a840f678aa78659b51ec647dcced4544c4a0b.zip

Modify game state generation to work across sols

Diffstat (limited to 'src/main/game_state.h')
-rw-r--r--src/main/game_state.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/game_state.h b/src/main/game_state.h
index 88e8937..ebcc15f 100644
--- a/src/main/game_state.h
+++ b/src/main/game_state.h
@@ -12,11 +12,12 @@
#include <rapidjson/document.h>
#include "card.h"
+#include "sol_rules.h"
class game_state {
public:
- game_state(const rapidjson::Document&, std::string);
- game_state(int seed, std::string);
+ game_state(const rapidjson::Document&);
+ game_state(int seed, const sol_rules&);
std::vector<game_state> get_next_legal_states() const;
bool is_solved() const;
@@ -31,7 +32,6 @@ private:
bool adjacent(const card& a, const card& b) const;
std::vector<std::vector<card> > tableau_piles;
- int max_rank;
card hole_card;
mutable bool solved;
};