aboutsummaryrefslogtreecommitdiff
path: root/src/main/game_state.h
diff options
context:
space:
mode:
authorthecharlesblake2017-10-28 10:13:13 +0100
committerthecharlesblake2017-10-28 10:13:13 +0100
commit70522b28586ba117ff9e1e27c8f4b183f8414fd1 (patch)
tree7ab7edafbbec14406f876e2bca72b0eb69411b26 /src/main/game_state.h
parentAdd random game generation to bh (diff)
downloadmetasol-70522b28586ba117ff9e1e27c8f4b183f8414fd1.tar.gz
metasol-70522b28586ba117ff9e1e27c8f4b183f8414fd1.zip

Add simple and regular bh types

Diffstat (limited to 'src/main/game_state.h')
-rw-r--r--src/main/game_state.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/game_state.h b/src/main/game_state.h
index d7a396f..ff92247 100644
--- a/src/main/game_state.h
+++ b/src/main/game_state.h
@@ -7,6 +7,7 @@
#include <vector>
#include <ostream>
+#include <string>
#include <rapidjson/document.h>
@@ -14,8 +15,8 @@
class game_state {
public:
- game_state(const rapidjson::Document&);
- game_state(int seed);
+ game_state(const rapidjson::Document&, std::string);
+ game_state(int seed, std::string);
std::vector<game_state> get_next_legal_states() const;
bool is_solved() const;
std::ostream& print(std::ostream&) const;
@@ -25,6 +26,7 @@ public:
private:
void move_to_hole(int);
bool adjacent(const card& a, const card& b) const;
+ bool simple;
std::vector<std::vector<card> > tableau_piles;
int max_rank;