From 25d3f7591e2b7ca5303593e1da4bc880174e189a Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Tue, 2 Jan 2018 11:28:47 +0000 Subject: Add rules parsing for bakers dozen --- src/main/game/sol_rules.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/main/game/sol_rules.h') diff --git a/src/main/game/sol_rules.h b/src/main/game/sol_rules.h index a2f8fe9..96c10d5 100644 --- a/src/main/game/sol_rules.h +++ b/src/main/game/sol_rules.h @@ -43,16 +43,21 @@ public: RED_BLACK, N_A }; + enum class spaces_policy { + NO_BUILD, + ANY + }; static bool is_suit(build_policy); static card::suit_t suit_val(build_policy); - static const sol_rules from_preset(const std::string); - static const sol_rules from_file(const std::string); + static const sol_rules from_preset(std::string); + static const sol_rules from_file(std::string); uint8_t tableau_pile_count; build_order build_ord; build_policy build_pol; + spaces_policy spaces_pol; card::rank_t max_rank; bool hole; bool foundations; -- cgit v1.2.1