diff options
| author | thecharlesblake | 2018-01-05 18:00:41 +0000 |
|---|---|---|
| committer | thecharlesblake | 2018-01-05 18:00:41 +0000 |
| commit | 5886a4e8be7fb5e15617a8e58f207ec008ca93e2 (patch) | |
| tree | 736dfad40136d09b3e3882a0023fbe79b1876844 | |
| parent | Add canfield to benchmark script (diff) | |
| download | metasol-5886a4e8be7fb5e15617a8e58f207ec008ca93e2.tar.gz metasol-5886a4e8be7fb5e15617a8e58f207ec008ca93e2.zip | |
Add json rules for somerset
| -rw-r--r-- | resources/simple-somerset.json | 7 | ||||
| -rw-r--r-- | resources/somerset.json | 5 | ||||
| -rw-r--r-- | src/main/input-output/input/sol_preset_types.cpp | 32 |
3 files changed, 43 insertions, 1 deletions
diff --git a/resources/simple-somerset.json b/resources/simple-somerset.json new file mode 100644 index 0000000..7b218ef --- /dev/null +++ b/resources/simple-somerset.json @@ -0,0 +1,7 @@ +{ + "tableau piles": { + "count": 10, + "build policy": "red-black", + "diagonal deal": true + } +}
\ No newline at end of file diff --git a/resources/somerset.json b/resources/somerset.json new file mode 100644 index 0000000..2ffec07 --- /dev/null +++ b/resources/somerset.json @@ -0,0 +1,5 @@ +{ + "tableau piles": { + "count": 13 + } +}
\ 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 8bff279..89a5842 100644 --- a/src/main/input-output/input/sol_preset_types.cpp +++ b/src/main/input-output/input/sol_preset_types.cpp @@ -23,7 +23,8 @@ std::map<string, string> sol_preset_types::mp = { "count": 8, "build order": "descending", "build policy": "any-suit", - "spaces policy": "any" + "spaces policy": "any", + "diagonal deal": true }, "max rank": 13, "hole": false, @@ -238,5 +239,34 @@ std::map<string, string> sol_preset_types::mp = { } )" + }, + { + "somerset", + + R"( +{ + "tableau piles": { + "count": 10, + "build policy": "red-black", + "diagonal deal": true + } +} +)" + + }, + { + "simple-somerset", + + R"( +{ + "tableau piles": { + "count": 4, + "build policy": "red-black", + "diagonal deal": true + }, + "max rank": 2 +} +)" + } };
\ No newline at end of file |
