diff options
| author | Charlie Blake | 2018-07-10 23:03:10 +0100 |
|---|---|---|
| committer | Charlie Blake | 2018-07-10 23:03:10 +0100 |
| commit | 00e1416edd74ad6cb32123020aa3b2ca115afb52 (patch) | |
| tree | 1b27a6a3b6585ef33ebf9de68649f30ade4d3c26 /src/main/game/sol_rules.cpp | |
| parent | Add Gaps integration tests (diff) | |
| download | metasol-00e1416edd74ad6cb32123020aa3b2ca115afb52.tar.gz metasol-00e1416edd74ad6cb32123020aa3b2ca115afb52.zip | |
Add deal parser json and fix bugs
Diffstat (limited to 'src/main/game/sol_rules.cpp')
| -rw-r--r-- | src/main/game/sol_rules.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/game/sol_rules.cpp b/src/main/game/sol_rules.cpp index d50d852..e9f4edf 100644 --- a/src/main/game/sol_rules.cpp +++ b/src/main/game/sol_rules.cpp @@ -7,6 +7,8 @@ typedef sol_rules::build_policy pol; typedef sol_rules::spaces_policy s_pol; typedef sol_rules::stock_deal_type sdt; +typedef sol_rules::direction dir; +typedef sol_rules::face_up_policy fu; // Note that the 'default' sol rules are set up by parsing the default json // rules description. This initialisation is really just for testing purposes. @@ -28,5 +30,9 @@ sol_rules::sol_rules() : stock_deal_t(sdt::TABLEAU_PILES), stock_deal_count(1), reserve_size(0), - reserve_stacked(false) { + reserve_stacked(false), + face_up(fu::ALL), + sequence_count(0), + sequence_direction(dir::LEFT), + sequence_build_pol(pol::SAME_SUIT) { } |
