aboutsummaryrefslogtreecommitdiff
path: root/src/main/game
diff options
context:
space:
mode:
authorthecharlesblake2017-11-12 10:17:10 +0000
committerthecharlesblake2017-11-12 10:17:10 +0000
commitb2173ab5118fb2c5700197ae8b295d1577aca3e9 (patch)
tree2603f0a77c4a10efc5f5687d05ebe7bca7d31a1d /src/main/game
parentTidy up headers for consistency (diff)
downloadmetasol-b2173ab5118fb2c5700197ae8b295d1577aca3e9.tar.gz
metasol-b2173ab5118fb2c5700197ae8b295d1577aca3e9.zip

Clean up sol_rules class

Diffstat (limited to 'src/main/game')
-rw-r--r--src/main/game/sol_rules.cpp10
-rw-r--r--src/main/game/sol_rules.h2
2 files changed, 9 insertions, 3 deletions
diff --git a/src/main/game/sol_rules.cpp b/src/main/game/sol_rules.cpp
index f47cf44..df5b939 100644
--- a/src/main/game/sol_rules.cpp
+++ b/src/main/game/sol_rules.cpp
@@ -11,7 +11,9 @@
using namespace std;
-// Static
+////////////
+// Static //
+////////////
typedef sol_rules::build_policy pol;
@@ -39,12 +41,16 @@ int sol_rules::suit_val(pol bp) {
}
}
-// Non-static
+////////////////
+// Non-static //
+////////////////
sol_rules::sol_rules(std::string sol_type) {
valid_sol vs = valid_sol_enum(sol_type);
// Default game values
+
+ // tableau_pile_count = no obvious default
build_ord = build_order::DESCENDING;
build_pol = build_policy::ANY_SUIT;
max_rank = 13;
diff --git a/src/main/game/sol_rules.h b/src/main/game/sol_rules.h
index 44b83bb..b73097d 100644
--- a/src/main/game/sol_rules.h
+++ b/src/main/game/sol_rules.h
@@ -41,7 +41,7 @@ public:
static bool is_suit(build_policy);
static int suit_val(build_policy);
- sol_rules(std::string);
+ explicit sol_rules(std::string);
unsigned int tableau_pile_count;
build_order build_ord;