aboutsummaryrefslogtreecommitdiff
path: root/src/main/input-output/input
diff options
context:
space:
mode:
authorCharlie Blake2018-09-29 15:17:32 +0100
committerGitHub2018-09-29 15:17:32 +0100
commita0764bc453d6a5338a35b2d594f2f2fcf5662e5c (patch)
tree80f615148bee020622fc5b345ca21c20e0941ddf /src/main/input-output/input
parentMerge pull request #92 from thecharlesblake/canfield-comp (diff)
parentFix reserve-foundation bug (diff)
downloadmetasol-a0764bc453d6a5338a35b2d594f2f2fcf5662e5c.tar.gz
metasol-a0764bc453d6a5338a35b2d594f2f2fcf5662e5c.zip

Merge pull request #93 from thecharlesblake/canfield-fix

Canfield fix

Diffstat (limited to 'src/main/input-output/input')
-rw-r--r--src/main/input-output/input/json-parsing/rules_parser.cpp11
-rw-r--r--src/main/input-output/input/sol_preset_types.cpp10
2 files changed, 3 insertions, 18 deletions
diff --git a/src/main/input-output/input/json-parsing/rules_parser.cpp b/src/main/input-output/input/json-parsing/rules_parser.cpp
index 2698e68..bcff1fd 100644
--- a/src/main/input-output/input/json-parsing/rules_parser.cpp
+++ b/src/main/input-output/input/json-parsing/rules_parser.cpp
@@ -201,14 +201,6 @@ void rules_parser::modify_sol_rules(sol_rules& sr, Document& d) {
}
}
- if (d["tableau piles"].HasMember("wraps")) {
- if (d["tableau piles"]["wraps"].IsBool()) {
- sr.tableau_wraps = d["tableau piles"]["wraps"].GetBool();
- } else {
- json_helper::json_parse_err("[tableau piles][wraps] must be a boolean");
- }
- }
-
} else {
json_helper::json_parse_err("[tableau piles] must be an object");
}
@@ -552,9 +544,6 @@ string rules_parser::rules_schema_json() {
"diagonal deal": {
"type": "boolean"
},
- "wraps": {
- "type": "boolean"
- },
"move built group": {
"type": "string",
"enum": [
diff --git a/src/main/input-output/input/sol_preset_types.cpp b/src/main/input-output/input/sol_preset_types.cpp
index 1f2df69..b7acd1b 100644
--- a/src/main/input-output/input/sol_preset_types.cpp
+++ b/src/main/input-output/input/sol_preset_types.cpp
@@ -25,7 +25,6 @@ map<string, string> sol_preset_types::mp = {
"build policy": "any-suit",
"spaces policy": "any",
"diagonal deal": false,
- "wraps": false,
"move built group": "no",
"move built group policy": "same-as-build",
"face up cards": "all"
@@ -279,8 +278,7 @@ map<string, string> sol_preset_types::mp = {
"count": 4,
"build policy": "red-black",
"move built group": "whole-pile",
- "spaces policy": "auto-reserve-then-waste",
- "wraps": true
+ "spaces policy": "auto-reserve-then-waste"
},
"foundations": {
"initial cards": "one",
@@ -308,8 +306,7 @@ map<string, string> sol_preset_types::mp = {
"count": 3,
"build policy": "red-black",
"move built group": "whole-pile",
- "spaces policy": "auto-reserve-then-waste",
- "wraps": true
+ "spaces policy": "auto-reserve-then-waste"
},
"foundations": {
"initial cards": "one",
@@ -1316,8 +1313,7 @@ map<string, string> sol_preset_types::mp = {
"count": 8,
"build policy": "same-suit",
"move built group": "whole-pile",
- "spaces policy": "auto-reserve-then-waste",
- "wraps": true
+ "spaces policy": "auto-reserve-then-waste"
},
"foundations": {
"initial cards": "one",