aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/sol_rules.h
diff options
context:
space:
mode:
authorCharlie Blake2018-07-14 20:44:44 +0100
committerCharlie Blake2018-07-14 20:44:44 +0100
commit171cbdb39440cb5c684155f66810df3b0bc4b4c1 (patch)
tree0ca853ab7e172849e339ce36dc2de80e58a1d309 /src/main/game/sol_rules.h
parentCreate accordion integration tests (diff)
downloadmetasol-171cbdb39440cb5c684155f66810df3b0bc4b4c1.tar.gz
metasol-171cbdb39440cb5c684155f66810df3b0bc4b4c1.zip

Add rules fields for accordion

Diffstat (limited to 'src/main/game/sol_rules.h')
-rw-r--r--src/main/game/sol_rules.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/game/sol_rules.h b/src/main/game/sol_rules.h
index b03d854..0673771 100644
--- a/src/main/game/sol_rules.h
+++ b/src/main/game/sol_rules.h
@@ -6,6 +6,7 @@
#define SOLVITAIRE_SOL_RULES_H
#include <string>
+#include <vector>
#include "../../../lib/rapidjson/document.h"
@@ -24,6 +25,12 @@ struct sol_rules {
KINGS,
ANY
};
+ enum class accordion_policy {
+ SAME_RANK,
+ SAME_SUIT,
+ RED_BLACK,
+ ANY_SUIT
+ };
enum class stock_deal_type {
WASTE,
TABLEAU_PILES
@@ -62,6 +69,9 @@ struct sol_rules {
uint8_t sequence_count;
direction sequence_direction;
build_policy sequence_build_pol;
+ uint8_t accordion_size;
+ std::vector<std::pair<direction, uint8_t>> accordion_moves;
+ std::vector<accordion_policy> accordion_pol;
};
#endif //SOLVITAIRE_SOL_RULES_H