aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthecharlesblake2018-01-04 15:44:47 +0000
committerthecharlesblake2018-01-04 15:44:47 +0000
commit88ed4cae6e8174102ee21ce15b03aa40fa032c29 (patch)
treecce0a677f21c0f018de6354b34643c9fa3d7b3d2
parentAdd fortunes favor to benchmark script (diff)
downloadmetasol-88ed4cae6e8174102ee21ce15b03aa40fa032c29.tar.gz
metasol-88ed4cae6e8174102ee21ce15b03aa40fa032c29.zip

Add rules json for flower garden

-rw-r--r--resources/default.json5
-rw-r--r--resources/flower-garden.json7
-rw-r--r--resources/simple-flower-garden.json5
-rw-r--r--src/main/input-output/input/sol_preset_types.cpp32
4 files changed, 40 insertions, 9 deletions
diff --git a/resources/default.json b/resources/default.json
index 756e31f..f3e9446 100644
--- a/resources/default.json
+++ b/resources/default.json
@@ -8,7 +8,8 @@
"max rank": 13,
"hole": false,
"foundations": true,
- "foundation initial card": false,
+ "foundations initial card": false,
"cells": 0,
- "stock size": 0
+ "stock size": 0,
+ "reserve size": 0
} \ No newline at end of file
diff --git a/resources/flower-garden.json b/resources/flower-garden.json
index 2ffec07..6ba2fbc 100644
--- a/resources/flower-garden.json
+++ b/resources/flower-garden.json
@@ -1,5 +1,6 @@
{
"tableau piles": {
- "count": 13
- }
-} \ No newline at end of file
+ "count": 6
+ },
+ "reserve size": 16
+}
diff --git a/resources/simple-flower-garden.json b/resources/simple-flower-garden.json
index 6ba2fbc..7e6f329 100644
--- a/resources/simple-flower-garden.json
+++ b/resources/simple-flower-garden.json
@@ -1,6 +1,7 @@
{
"tableau piles": {
- "count": 6
+ "count": 3
},
- "reserve size": 16
+ "max rank": 3,
+ "reserve size": 3
}
diff --git a/src/main/input-output/input/sol_preset_types.cpp b/src/main/input-output/input/sol_preset_types.cpp
index 96cbba9..5e0fcff 100644
--- a/src/main/input-output/input/sol_preset_types.cpp
+++ b/src/main/input-output/input/sol_preset_types.cpp
@@ -28,9 +28,10 @@ std::map<string, string> sol_preset_types::mp = {
"max rank": 13,
"hole": false,
"foundations": true,
+ "foundations initial card": false,
"cells": 0,
- "reserve size": 0,
- "stock size": 0
+ "stock size": 0,
+ "reserve size": 0
}
)"
@@ -176,5 +177,32 @@ std::map<string, string> sol_preset_types::mp = {
}
)"
+ },
+ {
+ "flower-garden",
+
+ R"(
+{
+ "tableau piles": {
+ "count": 6
+ },
+ "reserve size": 16
+}
+)"
+
+ },
+ {
+ "simple-flower-garden",
+
+ R"(
+{
+ "tableau piles": {
+ "count": 3
+ },
+ "max rank": 3,
+ "reserve size": 3
+}
+)"
+
}
}; \ No newline at end of file