aboutsummaryrefslogtreecommitdiff
path: root/src/main/sol_rules.h
diff options
context:
space:
mode:
authorCharlie Blake2017-11-11 11:27:28 +0000
committerGitHub2017-11-11 11:27:28 +0000
commit832b319d482a1fb29e5a673b16ea11ab5edb8d68 (patch)
treef29c4843e60bd06c3d04f7abb398c08da22136c7 /src/main/sol_rules.h
parentMerge pull request #18 from thecharlesblake/docs (diff)
parentAdd game state printing and fix bugs (diff)
downloadmetasol-832b319d482a1fb29e5a673b16ea11ab5edb8d68.tar.gz
metasol-832b319d482a1fb29e5a673b16ea11ab5edb8d68.zip

Merge pull request #19 from thecharlesblake/canfield

Canfield

Diffstat (limited to 'src/main/sol_rules.h')
-rw-r--r--src/main/sol_rules.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/main/sol_rules.h b/src/main/sol_rules.h
index 5699ef1..44b83bb 100644
--- a/src/main/sol_rules.h
+++ b/src/main/sol_rules.h
@@ -16,7 +16,9 @@ public:
SPANISH_PATIENCE,
SIMPLE_SPANISH_PATIENCE,
FREE_CELL,
- SIMPLE_FREE_CELL
+ SIMPLE_FREE_CELL,
+ CANFIELD,
+ SIMPLE_CANFIELD
};
enum class build_order {
NO_BUILD,
@@ -31,7 +33,8 @@ public:
HEARTS,
SPADES,
ANY_SUIT,
- SAME_SUIT
+ SAME_SUIT,
+ RED_BLACK
};
static std::vector<std::string> valid_sol_strs;
@@ -40,12 +43,15 @@ public:
sol_rules(std::string);
- int tableau_pile_count;
+ unsigned int tableau_pile_count;
build_order build_ord;
- int max_rank;
+ build_policy build_pol;
+ unsigned int max_rank;
bool hole;
bool foundations;
- int cells;
+ unsigned int cells;
+ unsigned int reserve_size;
+ unsigned int stock_size;
private:
static valid_sol valid_sol_enum(const std::string&);