aboutsummaryrefslogtreecommitdiff
path: root/src/main/game_state.h
diff options
context:
space:
mode:
authorthecharlesblake2017-10-28 14:03:54 +0100
committerthecharlesblake2017-10-28 14:03:54 +0100
commit9c018b08ed775eda03e4507e33a20742659683ea (patch)
treef40910ff140d7e28aa4426de78a53ae27901a72a /src/main/game_state.h
parentAdd Spanish Paitence to cmd parse and refactor (diff)
downloadmetasol-9c018b08ed775eda03e4507e33a20742659683ea.tar.gz
metasol-9c018b08ed775eda03e4507e33a20742659683ea.zip

Refactor game generation to make more generic

Diffstat (limited to 'src/main/game_state.h')
-rw-r--r--src/main/game_state.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/game_state.h b/src/main/game_state.h
index ff92247..88e8937 100644
--- a/src/main/game_state.h
+++ b/src/main/game_state.h
@@ -17,6 +17,7 @@ class game_state {
public:
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;
@@ -24,9 +25,10 @@ public:
friend std::ostream& operator<< (std::ostream&, const game_state&);
private:
+ static std::vector<card> shuffled_deck(int, int);
+
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;