aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthecharlesblake2018-01-08 18:46:11 +0000
committerthecharlesblake2018-01-08 18:46:11 +0000
commit22b347e97a9da26a2cddd7b5a04e1a7a62069d23 (patch)
tree48a5787108472fd5da3d1364a22923cdf4034e46
parentAdd somerset to benchmark script (diff)
downloadmetasol-22b347e97a9da26a2cddd7b5a04e1a7a62069d23.tar.gz
metasol-22b347e97a9da26a2cddd7b5a04e1a7a62069d23.zip

Add json rules for alpha star

-rw-r--r--resources/alpha-star.json8
-rw-r--r--resources/default.json3
-rw-r--r--resources/simple-alpha-star.json9
-rw-r--r--src/main/input-output/input/sol_preset_types.cpp34
4 files changed, 52 insertions, 2 deletions
diff --git a/resources/alpha-star.json b/resources/alpha-star.json
new file mode 100644
index 0000000..fde3ac4
--- /dev/null
+++ b/resources/alpha-star.json
@@ -0,0 +1,8 @@
+{
+ "tableau piles": {
+ "count": 12,
+ "build policy": "same-suit",
+ "move built group": true
+ },
+ "foundations initial card": true
+} \ No newline at end of file
diff --git a/resources/default.json b/resources/default.json
index 6df3933..5d4df74 100644
--- a/resources/default.json
+++ b/resources/default.json
@@ -4,7 +4,8 @@
"build order": "descending",
"build policy": "any-suit",
"spaces policy": "any",
- "diagonal deal": false
+ "diagonal deal": false,
+ "move built group": false
},
"max rank": 13,
"hole": false,
diff --git a/resources/simple-alpha-star.json b/resources/simple-alpha-star.json
new file mode 100644
index 0000000..9b15004
--- /dev/null
+++ b/resources/simple-alpha-star.json
@@ -0,0 +1,9 @@
+{
+ "tableau piles": {
+ "count": 3,
+ "build policy": "same-suit",
+ "move built group": true
+ },
+ "max rank": 5,
+ "foundations initial card": 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 89a5842..6805f8e 100644
--- a/src/main/input-output/input/sol_preset_types.cpp
+++ b/src/main/input-output/input/sol_preset_types.cpp
@@ -24,7 +24,8 @@ std::map<string, string> sol_preset_types::mp = {
"build order": "descending",
"build policy": "any-suit",
"spaces policy": "any",
- "diagonal deal": true
+ "diagonal deal": true,
+ "move built group": false
},
"max rank": 13,
"hole": false,
@@ -268,5 +269,36 @@ std::map<string, string> sol_preset_types::mp = {
}
)"
+ },
+ {
+ "alpha-star",
+
+ R"(
+{
+ "tableau piles": {
+ "count": 12,
+ "build policy": "same-suit",
+ "move built group": true
+ },
+ "foundations initial card": true
+}
+)"
+
+ },
+ {
+ "simple-alpha-star",
+
+ R"(
+{
+ "tableau piles": {
+ "count": 3,
+ "build policy": "same-suit",
+ "move built group": true
+ },
+ "max rank": 5,
+ "foundations initial card": true
+}
+)"
+
}
}; \ No newline at end of file