aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/sol_rules.cpp
diff options
context:
space:
mode:
authorCharlie Blake2018-01-18 23:57:52 +0000
committerGitHub2018-01-18 23:57:52 +0000
commitbcaff64bdeaab93ff0d40dfd039b4b43ff689b1c (patch)
tree7882812349716607773458b1c830579de802793f /src/main/game/sol_rules.cpp
parentMerge pull request #29 from thecharlesblake/refactor-improve-debug (diff)
parentRemoves unnecessary assert statement bug (diff)
downloadmetasol-bcaff64bdeaab93ff0d40dfd039b4b43ff689b1c.tar.gz
metasol-bcaff64bdeaab93ff0d40dfd039b4b43ff689b1c.zip

Merge pull request #30 from thecharlesblake/symmetrical-hash

Symmetrical hash

Diffstat (limited to 'src/main/game/sol_rules.cpp')
-rw-r--r--src/main/game/sol_rules.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/main/game/sol_rules.cpp b/src/main/game/sol_rules.cpp
new file mode 100644
index 0000000..7311e06
--- /dev/null
+++ b/src/main/game/sol_rules.cpp
@@ -0,0 +1,29 @@
+//
+// Created by thecharlesblake on 1/12/18.
+//
+
+#include "sol_rules.h"
+
+typedef sol_rules::build_policy pol;
+typedef sol_rules::spaces_policy s_pol;
+typedef sol_rules::stock_deal_type sdt;
+
+// Note that the 'default' sol rules are set up by parsing the default json
+// rules description. This initialisation is really just for testing purposes.
+sol_rules::sol_rules() :
+ tableau_pile_count(0),
+ build_pol(pol::ANY_SUIT),
+ spaces_pol(s_pol::ANY),
+ move_built_group(false),
+ two_decks(false),
+ max_rank(13),
+ hole(false),
+ foundations(false),
+ foundations_init_card(false),
+ diagonal_deal(false),
+ cells(0),
+ stock_size(0),
+ stock_deal_t(sdt::TABLEAU_PILES),
+ reserve_size(0),
+ reserve_stacked(false) {
+}