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

Add “foundations removable” field to rules JSON

-rw-r--r--resources/bakers-dozen.json3
-rw-r--r--resources/default.json1
-rw-r--r--resources/flower-garden.json3
-rw-r--r--resources/simple-bakers-dozen.json3
-rw-r--r--resources/simple-flower-garden.json3
-rw-r--r--resources/simple-somerset.json3
-rw-r--r--resources/simple-spanish-patience.json3
-rw-r--r--resources/somerset.json3
-rw-r--r--resources/spanish-patience.json3
-rw-r--r--src/main/input-output/input/sol_preset_types.cpp25
10 files changed, 34 insertions, 16 deletions
diff --git a/resources/bakers-dozen.json b/resources/bakers-dozen.json
index 7f49b61..4f63936 100644
--- a/resources/bakers-dozen.json
+++ b/resources/bakers-dozen.json
@@ -2,5 +2,6 @@
"tableau piles": {
"count": 13,
"spaces policy": "no-build"
- }
+ },
+ "foundations removable": true
} \ No newline at end of file
diff --git a/resources/default.json b/resources/default.json
index 3a9800d..9b28865 100644
--- a/resources/default.json
+++ b/resources/default.json
@@ -12,6 +12,7 @@
"hole": false,
"foundations": true,
"foundations initial card": false,
+ "foundations removable": false,
"cells": 0,
"stock size": 0,
"stock deal type": "waste",
diff --git a/resources/flower-garden.json b/resources/flower-garden.json
index 6ba2fbc..92906fb 100644
--- a/resources/flower-garden.json
+++ b/resources/flower-garden.json
@@ -2,5 +2,6 @@
"tableau piles": {
"count": 6
},
- "reserve size": 16
+ "reserve size": 16,
+ "foundations removable": true
}
diff --git a/resources/simple-bakers-dozen.json b/resources/simple-bakers-dozen.json
index 4bb0dc7..3f038fe 100644
--- a/resources/simple-bakers-dozen.json
+++ b/resources/simple-bakers-dozen.json
@@ -3,5 +3,6 @@
"count": 3,
"spaces policy": "no-build"
},
- "max rank": 3
+ "max rank": 3,
+ "foundations removable": true
} \ No newline at end of file
diff --git a/resources/simple-flower-garden.json b/resources/simple-flower-garden.json
index 7e6f329..eb7916c 100644
--- a/resources/simple-flower-garden.json
+++ b/resources/simple-flower-garden.json
@@ -3,5 +3,6 @@
"count": 3
},
"max rank": 3,
- "reserve size": 3
+ "reserve size": 3,
+ "foundations removable": true
}
diff --git a/resources/simple-somerset.json b/resources/simple-somerset.json
index 309b217..555fddf 100644
--- a/resources/simple-somerset.json
+++ b/resources/simple-somerset.json
@@ -4,5 +4,6 @@
"build policy": "red-black",
"diagonal deal": true
},
- "max rank": 2
+ "max rank": 2,
+ "foundations removable": true
} \ No newline at end of file
diff --git a/resources/simple-spanish-patience.json b/resources/simple-spanish-patience.json
index a0c745e..2b27cb5 100644
--- a/resources/simple-spanish-patience.json
+++ b/resources/simple-spanish-patience.json
@@ -2,5 +2,6 @@
"tableau piles": {
"count": 3
},
- "max rank": 2
+ "max rank": 2,
+ "foundations removable": true
} \ No newline at end of file
diff --git a/resources/somerset.json b/resources/somerset.json
index 7b218ef..fc3bdad 100644
--- a/resources/somerset.json
+++ b/resources/somerset.json
@@ -3,5 +3,6 @@
"count": 10,
"build policy": "red-black",
"diagonal deal": true
- }
+ },
+ "foundations removable": true
} \ No newline at end of file
diff --git a/resources/spanish-patience.json b/resources/spanish-patience.json
index 2ffec07..32c1dab 100644
--- a/resources/spanish-patience.json
+++ b/resources/spanish-patience.json
@@ -1,5 +1,6 @@
{
"tableau piles": {
"count": 13
- }
+ },
+ "foundations removable": true
} \ No newline at end of file
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
}
)"