aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/game_state.cpp
diff options
context:
space:
mode:
authorthecharlesblake2018-01-02 11:29:16 +0000
committerthecharlesblake2018-01-02 11:29:16 +0000
commitf56486a83a03ab58fd3f455258de4caebe239322 (patch)
tree06e2fe80581ed8c9daa471fc8a65ed7dd72c0be3 /src/main/game/game_state.cpp
parentAdd rules parsing for bakers dozen (diff)
downloadmetasol-f56486a83a03ab58fd3f455258de4caebe239322.tar.gz
metasol-f56486a83a03ab58fd3f455258de4caebe239322.zip

Add empty pile logic for bakers dozen

Diffstat (limited to 'src/main/game/game_state.cpp')
-rw-r--r--src/main/game/game_state.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/game/game_state.cpp b/src/main/game/game_state.cpp
index caabb18..319bf5d 100644
--- a/src/main/game/game_state.cpp
+++ b/src/main/game/game_state.cpp
@@ -20,6 +20,7 @@ using namespace boost;
typedef sol_rules::build_order ord;
typedef sol_rules::build_policy pol;
+typedef sol_rules::spaces_policy s_pol;
// A private constructor used by both of the public ones. Initializes all of the
// piles and pile refs specified by the rules
@@ -28,7 +29,8 @@ game_state::game_state(const sol_rules& s_rules) :
// Creates the tableau piles
for (uint8_t i = 0; i < rules.tableau_pile_count; i++) {
- piles.push_back(pile::tableau_factory(rules.build_ord, rules.build_pol));
+ piles.push_back(pile::tableau_factory(rules.build_ord, rules.build_pol,
+ rules.spaces_pol));
tableau_piles.push_back(static_cast<pile_ref>(piles.size() - 1));
}