aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorthecharlesblake2018-02-05 15:31:39 +0000
committerthecharlesblake2018-02-14 16:59:07 +0000
commitdfecd22e848447fbecdfb045a1477209e965e7ed (patch)
tree095ad4a6b61ba3a6f17b23b918fabc7acd2a8868 /src
parentMerge pull request #37 from thecharlesblake/docs (diff)
downloadmetasol-dfecd22e848447fbecdfb045a1477209e965e7ed.tar.gz
metasol-dfecd22e848447fbecdfb045a1477209e965e7ed.zip

Add “foundations removable” field to rules JSON

Diffstat (limited to 'src')
-rw-r--r--src/main/input-output/input/sol_preset_types.cpp25
1 files changed, 17 insertions, 8 deletions
diff --git a/src/main/input-output/input/sol_preset_types.cpp b/src/main/input-output/input/sol_preset_types.cpp
index 8f0293f..eeb0edc 100644
--- a/src/main/input-output/input/sol_preset_types.cpp
+++ b/src/main/input-output/input/sol_preset_types.cpp
@@ -32,6 +32,7 @@ std::map<string, string> sol_preset_types::mp = {
"hole": false,
"foundations": true,
"foundations initial card": false,
+ "foundations removable": false,
"cells": 0,
"stock size": 0,
"stock deal type": "waste",
@@ -48,7 +49,8 @@ std::map<string, string> sol_preset_types::mp = {
{
"tableau piles": {
"count": 13
- }
+ },
+ "foundations removable": true
}
)"
@@ -61,7 +63,8 @@ std::map<string, string> sol_preset_types::mp = {
"tableau piles": {
"count": 3
},
- "max rank": 2
+ "max rank": 2,
+ "foundations removable": true
}
)"
@@ -102,7 +105,8 @@ std::map<string, string> sol_preset_types::mp = {
"tableau piles": {
"count": 13,
"spaces policy": "no-build"
- }
+ },
+ "foundations removable": true
}
)"
@@ -116,7 +120,8 @@ std::map<string, string> sol_preset_types::mp = {
"count": 3,
"spaces policy": "no-build"
},
- "max rank": 3
+ "max rank": 3,
+ "foundations removable": true
}
)"
@@ -192,7 +197,8 @@ std::map<string, string> sol_preset_types::mp = {
"count": 6
},
"reserve size": 16
-}
+},
+ "foundations removable": true
)"
},
@@ -206,7 +212,8 @@ std::map<string, string> sol_preset_types::mp = {
},
"max rank": 3,
"reserve size": 3
-}
+},
+ "foundations removable": true
)"
},
@@ -252,7 +259,8 @@ std::map<string, string> sol_preset_types::mp = {
"count": 10,
"build policy": "red-black",
"diagonal deal": true
- }
+ },
+ "foundations removable": true
}
)"
@@ -267,7 +275,8 @@ std::map<string, string> sol_preset_types::mp = {
"build policy": "red-black",
"diagonal deal": true
},
- "max rank": 2
+ "max rank": 2,
+ "foundations removable": true
}
)"