From f56486a83a03ab58fd3f455258de4caebe239322 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Tue, 2 Jan 2018 11:29:16 +0000 Subject: Add empty pile logic for bakers dozen --- src/main/game/game_state.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/game/game_state.cpp') 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(piles.size() - 1)); } -- cgit v1.2.1