diff options
| author | thecharlesblake | 2017-11-12 10:17:10 +0000 |
|---|---|---|
| committer | thecharlesblake | 2017-11-12 10:17:10 +0000 |
| commit | b2173ab5118fb2c5700197ae8b295d1577aca3e9 (patch) | |
| tree | 2603f0a77c4a10efc5f5687d05ebe7bca7d31a1d /src | |
| parent | Tidy up headers for consistency (diff) | |
| download | metasol-b2173ab5118fb2c5700197ae8b295d1577aca3e9.tar.gz metasol-b2173ab5118fb2c5700197ae8b295d1577aca3e9.zip | |
Clean up sol_rules class
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/game/sol_rules.cpp | 10 | ||||
| -rw-r--r-- | src/main/game/sol_rules.h | 2 |
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; |
