From ef291b15a21f2f6cfa98b2c4f2572de5a61a2fa9 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Tue, 9 Jan 2018 08:51:11 +0000 Subject: Add json rules for spider --- resources/default.json | 2 ++ resources/simple-spider.json | 9 ++++++ resources/spider.json | 8 ++++++ src/main/input-output/input/sol_preset_types.cpp | 35 +++++++++++++++++++++++- 4 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 resources/simple-spider.json create mode 100644 resources/spider.json diff --git a/resources/default.json b/resources/default.json index 5d4df74..3a9800d 100644 --- a/resources/default.json +++ b/resources/default.json @@ -8,11 +8,13 @@ "move built group": false }, "max rank": 13, + "two decks": false, "hole": false, "foundations": true, "foundations initial card": false, "cells": 0, "stock size": 0, + "stock deal type": "waste", "reserve size": 0, "reserve stacked": false } \ No newline at end of file diff --git a/resources/simple-spider.json b/resources/simple-spider.json new file mode 100644 index 0000000..b931efb --- /dev/null +++ b/resources/simple-spider.json @@ -0,0 +1,9 @@ +{ + "tableau piles": { + "count": 4 + }, + "two decks": true, + "max rank": 3, + "stock size": 12, + "stock deal type": "tableau piles" +} \ No newline at end of file diff --git a/resources/spider.json b/resources/spider.json new file mode 100644 index 0000000..4d93a47 --- /dev/null +++ b/resources/spider.json @@ -0,0 +1,8 @@ +{ + "tableau piles": { + "count": 10 + }, + "two decks": true, + "stock size": 60, + "stock deal type": "tableau piles" +} \ 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 6805f8e..8f0293f 100644 --- a/src/main/input-output/input/sol_preset_types.cpp +++ b/src/main/input-output/input/sol_preset_types.cpp @@ -24,15 +24,17 @@ std::map sol_preset_types::mp = { "build order": "descending", "build policy": "any-suit", "spaces policy": "any", - "diagonal deal": true, + "diagonal deal": false, "move built group": false }, "max rank": 13, + "two decks": false, "hole": false, "foundations": true, "foundations initial card": false, "cells": 0, "stock size": 0, + "stock deal type": "waste", "reserve size": 0, "reserve stacked": false } @@ -298,6 +300,37 @@ std::map sol_preset_types::mp = { "max rank": 5, "foundations initial card": true } +)" + + }, + { + "spider", + + R"( +{ + "tableau piles": { + "count": 10 + }, + "two decks": true, + "stock size": 60, + "stock deal type": "tableau piles" +} +)" + + }, + { + "simple-spider", + + R"( +{ + "tableau piles": { + "count": 4 + }, + "two decks": true, + "max rank": 3, + "stock size": 12, + "stock deal type": "tableau piles" +} )" } -- cgit v1.2.1