From 22b347e97a9da26a2cddd7b5a04e1a7a62069d23 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Mon, 8 Jan 2018 18:46:11 +0000 Subject: Add json rules for alpha star --- resources/alpha-star.json | 8 ++++++ resources/default.json | 3 ++- resources/simple-alpha-star.json | 9 +++++++ src/main/input-output/input/sol_preset_types.cpp | 34 +++++++++++++++++++++++- 4 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 resources/alpha-star.json create mode 100644 resources/simple-alpha-star.json 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 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, @@ -266,6 +267,37 @@ std::map sol_preset_types::mp = { }, "max rank": 2 } +)" + + }, + { + "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 +} )" } -- cgit v1.2.1