aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/sol_rules.h
diff options
context:
space:
mode:
authorCharlie Blake2018-06-25 11:50:34 +0100
committerCharlie Blake2018-06-25 11:50:34 +0100
commit2b92783762c2824e519b881afbf5d66a606c394f (patch)
tree649ff85cbec5f72ae7a574e28aede71d178cd991 /src/main/game/sol_rules.h
parentAdd face up cards json rule (diff)
downloadmetasol-2b92783762c2824e519b881afbf5d66a606c394f.tar.gz
metasol-2b92783762c2824e519b881afbf5d66a606c394f.zip

Add card face down unit tests

Diffstat (limited to 'src/main/game/sol_rules.h')
-rw-r--r--src/main/game/sol_rules.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/game/sol_rules.h b/src/main/game/sol_rules.h
index adab00d..a7b9ae6 100644
--- a/src/main/game/sol_rules.h
+++ b/src/main/game/sol_rules.h
@@ -28,6 +28,10 @@ struct sol_rules {
WASTE,
TABLEAU_PILES
};
+ enum class face_up_policy {
+ ALL,
+ TOP_CARDS
+ };
uint8_t tableau_pile_count;
build_policy build_pol;
@@ -49,6 +53,8 @@ struct sol_rules {
bool stock_redeal;
uint8_t reserve_size;
bool reserve_stacked;
+ face_up_policy face_up;
+
};
#endif //SOLVITAIRE_SOL_RULES_H