aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthecharlesblake2018-01-05 15:53:30 +0000
committerthecharlesblake2018-01-05 15:53:30 +0000
commit6f56c50d2678f1640f8c15ff5cfcff03af3f52b2 (patch)
tree037b1f5dd5511791e45a03838f9d044068011569
parentAdd flower garden to benchmark script (diff)
downloadmetasol-6f56c50d2678f1640f8c15ff5cfcff03af3f52b2.tar.gz
metasol-6f56c50d2678f1640f8c15ff5cfcff03af3f52b2.zip

Add json rules for canfield

-rw-r--r--resources/canfield.json9
-rw-r--r--resources/default.json3
-rw-r--r--resources/simple-canfield.json10
-rw-r--r--src/main/input-output/input/sol_preset_types.cpp36
4 files changed, 56 insertions, 2 deletions
diff --git a/resources/canfield.json b/resources/canfield.json
new file mode 100644
index 0000000..5f36a72
--- /dev/null
+++ b/resources/canfield.json
@@ -0,0 +1,9 @@
+{
+ "tableau piles": {
+ "count": 4,
+ "build policy": "red-black"
+ },
+ "stock size": 34,
+ "reserve size": 14,
+ "reserve stacked": true
+}
diff --git a/resources/default.json b/resources/default.json
index f3e9446..29f3aec 100644
--- a/resources/default.json
+++ b/resources/default.json
@@ -11,5 +11,6 @@
"foundations initial card": false,
"cells": 0,
"stock size": 0,
- "reserve size": 0
+ "reserve size": 0,
+ "reserve stacked": false
} \ No newline at end of file
diff --git a/resources/simple-canfield.json b/resources/simple-canfield.json
new file mode 100644
index 0000000..62a73c3
--- /dev/null
+++ b/resources/simple-canfield.json
@@ -0,0 +1,10 @@
+{
+ "tableau piles": {
+ "count": 3,
+ "build policy": "red-black"
+ },
+ "max rank": 3,
+ "stock size": 1,
+ "reserve size": 2,
+ "reserve stacked": 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 5e0fcff..8bff279 100644
--- a/src/main/input-output/input/sol_preset_types.cpp
+++ b/src/main/input-output/input/sol_preset_types.cpp
@@ -31,7 +31,8 @@ std::map<string, string> sol_preset_types::mp = {
"foundations initial card": false,
"cells": 0,
"stock size": 0,
- "reserve size": 0
+ "reserve size": 0,
+ "reserve stacked": false
}
)"
@@ -204,5 +205,38 @@ std::map<string, string> sol_preset_types::mp = {
}
)"
+ },
+ {
+ "canfield",
+
+ R"(
+{
+ "tableau piles": {
+ "count": 4,
+ "build policy": "red-black"
+ },
+ "stock size": 34,
+ "reserve size": 14,
+ "reserve stacked": true
+}
+)"
+
+ },
+ {
+ "simple-canfield",
+
+ R"(
+{
+ "tableau piles": {
+ "count": 3,
+ "build policy": "red-black"
+ },
+ "max rank": 3,
+ "stock size": 1,
+ "reserve size": 2,
+ "reserve stacked": true
+}
+)"
+
}
}; \ No newline at end of file