aboutsummaryrefslogtreecommitdiff
path: root/src/main/input-output
diff options
context:
space:
mode:
authorthecharlesblake2018-01-02 11:27:27 +0000
committerthecharlesblake2018-01-02 11:27:27 +0000
commit9ad093dc713f5464181b1018e80ec359ca381bb3 (patch)
tree836584a0df2546bf0b9a764b26295c22c3fd6478 /src/main/input-output
parentFix bug in solver - improper ref to vector element (diff)
downloadmetasol-9ad093dc713f5464181b1018e80ec359ca381bb3.tar.gz
metasol-9ad093dc713f5464181b1018e80ec359ca381bb3.zip

Add json rules for bakers dozen

Diffstat (limited to 'src/main/input-output')
-rw-r--r--src/main/input-output/sol_preset_types.cpp74
1 files changed, 51 insertions, 23 deletions
diff --git a/src/main/input-output/sol_preset_types.cpp b/src/main/input-output/sol_preset_types.cpp
index 169a8a5..2ba14d9 100644
--- a/src/main/input-output/sol_preset_types.cpp
+++ b/src/main/input-output/sol_preset_types.cpp
@@ -22,7 +22,8 @@ std::map<string, string> sol_preset_types::mp = {
"tableau piles": {
"count": 8,
"build order": "descending",
- "build policy": "any-suit"
+ "build policy": "any-suit",
+ "spaces policy": "any"
},
"max rank": 13,
"hole": false,
@@ -35,85 +36,112 @@ std::map<string, string> sol_preset_types::mp = {
},
{
- "black-hole",
+ "spanish-patience",
R"(
{
"tableau piles": {
- "count": 17,
- "build order": "no-build"
+ "count": 13
+ }
+}
+)"
+
+ },
+ {
+ "simple-spanish-patience",
+
+ R"(
+{
+ "tableau piles": {
+ "count": 3
},
- "hole": true,
- "foundations": false
+ "max rank": 2
}
)"
},
{
- "simple-black-hole",
+ "free-cell",
+
+ R"(
+{
+ "tableau piles": {
+ "build policy": "red-black"
+ },
+ "cells": 4
+}
+)"
+
+ },
+ {
+ "simple-free-cell",
R"(
{
"tableau piles": {
"count": 4,
- "build order": "no-build"
+ "build policy": "red-black"
},
- "max rank": 5,
- "hole": true,
- "foundations": false
+ "max rank": 4,
+ "cells": 1
}
)"
},
{
- "spanish-patience",
+ "bakers-dozen",
R"(
{
"tableau piles": {
- "count": 13
+ "count": 13,
+ "spaces policy": "no-build"
}
}
)"
},
{
- "simple-spanish-patience",
+ "simple-bakers-dozen",
R"(
{
"tableau piles": {
- "count": 3
+ "count": 3,
+ "spaces policy": "no-build"
},
- "max rank": 2
+ "max rank": 3
}
)"
},
{
- "free-cell",
+ "black-hole",
R"(
{
"tableau piles": {
- "build policy": "red-black"
+ "count": 17,
+ "build order": "no-build"
},
- "cells": 4
+ "hole": true,
+ "foundations": false
}
)"
},
{
- "simple-free-cell",
+ "simple-black-hole",
R"(
{
"tableau piles": {
"count": 4,
- "build policy": "red-black"
+ "build order": "no-build"
},
- "max rank": 4,
- "cells": 1
+ "max rank": 5,
+ "hole": true,
+ "foundations": false
}
)"