diff options
| author | Tom Harley | 2019-01-27 15:37:06 +0000 |
|---|---|---|
| committer | Tom Harley | 2019-01-27 15:37:06 +0000 |
| commit | a996283af7c21baaff0e114d58c34db820902c6f (patch) | |
| tree | 2fe5b6f7a800d4a7b8a65ee345f8c98aa138e36b /src/main/game/sol_rules.h | |
| parent | Split code into 3 files (diff) | |
| download | metasol-a996283af7c21baaff0e114d58c34db820902c6f.tar.gz metasol-a996283af7c21baaff0e114d58c34db820902c6f.zip | |
Reorganise repo
All solvitaire content has been shoved into a subdirectory to tidy up the root of the project. This also means solvitaire is treated similarly to other dependencies of the project, and allows other dependencies to be added easily.
There’s also a lot of other work done here, such as usign a thread pool library to manage the running of the voters.
Diffstat (limited to 'src/main/game/sol_rules.h')
| -rw-r--r-- | src/main/game/sol_rules.h | 95 |
1 files changed, 0 insertions, 95 deletions
diff --git a/src/main/game/sol_rules.h b/src/main/game/sol_rules.h deleted file mode 100644 index 6a6b575..0000000 --- a/src/main/game/sol_rules.h +++ /dev/null @@ -1,95 +0,0 @@ -// -// Created by thecharlesblake on 10/28/17. -// - -#ifndef SOLVITAIRE_SOL_RULES_H -#define SOLVITAIRE_SOL_RULES_H - -#include <string> -#include <vector> -#include <boost/optional.hpp> - -#include "card.h" -#include "../../../lib/rapidjson/document.h" - -struct sol_rules { - sol_rules(); - - // Tableau policies - enum class build_policy { - NO_BUILD, - SAME_SUIT, - RED_BLACK, - ANY_SUIT - }; - enum class spaces_policy { - NO_BUILD, - KINGS, - ANY, - AUTO_RESERVE_THEN_WASTE, - AUTO_WASTE_THEN_STOCK - }; - enum class accordion_policy { - SAME_RANK, - SAME_SUIT, - RED_BLACK, - ANY_SUIT - }; - enum class stock_deal_type { - WASTE, - TABLEAU_PILES - }; - enum class face_up_policy { - ALL, - TOP_CARDS - }; - enum class direction { - LEFT, - RIGHT, - BOTH - }; - enum class built_group_type { - YES, - NO, - WHOLE_PILE, - MAXIMAL_GROUP - }; - enum class foundations_init_type { - NONE, - ONE, - ALL - }; - - uint8_t tableau_pile_count; - build_policy build_pol; - spaces_policy spaces_pol; - built_group_type move_built_group; - build_policy built_group_pol; - bool two_decks; - uint8_t max_rank; - bool hole; - bool foundations_present; - foundations_init_type foundations_init_cards; - boost::optional<card::rank_t> foundations_base; - bool foundations_removable; - bool foundations_only_comp_piles; - bool diagonal_deal; - uint8_t cells; - uint8_t cells_pre_filled; - uint8_t stock_size; - stock_deal_type stock_deal_t; - uint8_t stock_deal_count; - bool stock_redeal; - uint8_t reserve_size; - bool reserve_stacked; - face_up_policy face_up; - uint8_t sequence_count; - direction sequence_direction; - build_policy sequence_build_pol; - bool sequence_fixed_suit; - uint8_t accordion_size; - std::vector<std::pair<direction, uint8_t>> accordion_moves; - std::vector<accordion_policy> accordion_pol; -}; - -#endif //SOLVITAIRE_SOL_RULES_H |
