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

Add json rules for canfield

Diffstat (limited to 'src')
-rw-r--r--src/main/input-output/input/sol_preset_types.cpp36
1 files changed, 35 insertions, 1 deletions
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