blob: adab00d3c4248985a5f836ea0e48fb0aa8e7cfb7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
//
// Created by thecharlesblake on 10/28/17.
//
#ifndef SOLVITAIRE_SOL_RULES_H
#define SOLVITAIRE_SOL_RULES_H
#include <string>
#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
};
enum class stock_deal_type {
WASTE,
TABLEAU_PILES
};
uint8_t tableau_pile_count;
build_policy build_pol;
spaces_policy spaces_pol;
bool move_built_group;
build_policy built_group_pol;
bool two_decks;
uint8_t max_rank;
bool hole;
bool foundations;
bool foundations_init_card;
bool foundations_removable;
bool foundations_comp_piles;
bool diagonal_deal;
uint8_t cells;
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;
};
#endif //SOLVITAIRE_SOL_RULES_H
|