diff options
| author | Charlie Blake | 2018-07-24 16:17:44 +0100 |
|---|---|---|
| committer | GitHub | 2018-07-24 16:17:44 +0100 |
| commit | 6ffee36ea973433723359321dfffd43c65febf88 (patch) | |
| tree | cb3841d736ff353c5d8aea6a4faf81861ef83f5c /src/main/game/sol_rules.h | |
| parent | Merge pull request #77 from thecharlesblake/add-accordion (diff) | |
| parent | Fix canfield to pass all unit tests (diff) | |
| download | metasol-6ffee36ea973433723359321dfffd43c65febf88.tar.gz metasol-6ffee36ea973433723359321dfffd43c65febf88.zip | |
Merge pull request #78 from thecharlesblake/add-canfield
Add canfield
Diffstat (limited to 'src/main/game/sol_rules.h')
| -rw-r--r-- | src/main/game/sol_rules.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/main/game/sol_rules.h b/src/main/game/sol_rules.h index 0673771..2384b21 100644 --- a/src/main/game/sol_rules.h +++ b/src/main/game/sol_rules.h @@ -7,7 +7,9 @@ #include <string> #include <vector> +#include <boost/optional.hpp> +#include "card.h" #include "../../../lib/rapidjson/document.h" struct sol_rules { @@ -23,7 +25,8 @@ struct sol_rules { enum class spaces_policy { NO_BUILD, KINGS, - ANY + ANY, + AUTO_RESERVE_THEN_WASTE }; enum class accordion_policy { SAME_RANK, @@ -44,17 +47,29 @@ struct sol_rules { RIGHT, BOTH }; + enum class built_group_type { + YES, + NO, + WHOLE_PILE + }; + enum class foundations_init_type { + NONE, + ONE, + ALL + }; uint8_t tableau_pile_count; build_policy build_pol; spaces_policy spaces_pol; - bool move_built_group; + built_group_type move_built_group; build_policy built_group_pol; + bool tableau_wraps; bool two_decks; uint8_t max_rank; bool hole; bool foundations_present; - bool foundations_init_card; + foundations_init_type foundations_init_cards; + boost::optional<card::rank_t> foundations_base; bool foundations_removable; bool foundations_only_comp_piles; bool diagonal_deal; |
