diff options
| -rw-r--r-- | resources/positional_games.json | 22 | ||||
| -rw-r--r-- | src/test/test_helper.cpp | 3 |
2 files changed, 24 insertions, 1 deletions
diff --git a/resources/positional_games.json b/resources/positional_games.json new file mode 100644 index 0000000..3339379 --- /dev/null +++ b/resources/positional_games.json @@ -0,0 +1,22 @@ +{ + "gaps": { + "sequences": { + "count": 4, + "from": "any", + "to": "spaces", + "spaces policy": "increasing neighbour same-suit", + "victory": "ascending same-suit" + }, + "foundations": true, + "foundations initial card": true + }, + "accordion": { + "sequences": { + "count": 1, + "from": ["1R", "3R"], + "to": ["same-suit", "same-rank"], + "spaces policy": "remove", + "victory": "single pile" + } + } +}
\ No newline at end of file diff --git a/src/test/test_helper.cpp b/src/test/test_helper.cpp index c85cf39..c4f902e 100644 --- a/src/test/test_helper.cpp +++ b/src/test/test_helper.cpp @@ -18,13 +18,14 @@ using std::vector; using std::ostream; typedef std::initializer_list<std::initializer_list<std::string>> string_il; +typedef game_state::streamliner_options sos; bool test_helper::is_solvable(const std::string& input_file, const std::string& preset_type) { const Document in_doc = json_helper::get_file_json(input_file); const sol_rules rules = rules_parser::from_preset(preset_type); - game_state gs(rules, in_doc, false); + game_state gs(rules, in_doc, sos::NONE); solver sol(gs, 1000000); return sol.run() == solver::sol_state::solved; |
