diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/input-output/input/sol_preset_types.cpp | 128 | ||||
| -rw-r--r-- | src/main/solver/solver.cpp | 4 |
2 files changed, 130 insertions, 2 deletions
diff --git a/src/main/input-output/input/sol_preset_types.cpp b/src/main/input-output/input/sol_preset_types.cpp index c474a13..ee2485c 100644 --- a/src/main/input-output/input/sol_preset_types.cpp +++ b/src/main/input-output/input/sol_preset_types.cpp @@ -1393,6 +1393,134 @@ map<string, string> sol_preset_types::mp = { } )" + }, + + { + "american-canister", + + R"( +{ + "tableau piles": { + "count": 8, + "build policy": "red-black", + "move built group": "yes", + "spaces policy": "any" + } +} +)" + + }, + + { + "british-canister", + + R"( +{ + "tableau piles": { + "count": 8, + "build policy": "red-black", + "move built group": "no", + "spaces policy": "kings" + } +} +)" + + }, + + { + "canister-warfield", + + R"( +{ + "tableau piles": { + "count": 8, + "build policy": "any-suit", + "move built group": "yes", + "spaces policy": "any" + } +} +)" + + }, + + { + "beleaguered-castle", + + R"( +{ + "tableau piles": { + "count": 8, + "build policy": "any-suit" + }, + "foundations": { + "initial cards": "all" + } +} +)" + + }, + + { + "klondike-two-deck-9", + + R"( +{ + "tableau piles": { + "count": 9, + "build policy": "red-black", + "spaces policy": "kings", + "move built group": "yes", + "diagonal deal": true, + "face up cards": "top" + }, + "foundations": { + "removable": true + }, + "stock": { + "size": 59, + "deal count": 3, + "redeal": true + }, + "two decks": true +} +)" + + }, + + { + "streets-and-alleys", + + R"( +{ + "tableau piles": { + "count": 8, + "build policy": "any-suit" + }, + "foundations": { + "initial cards": "none" + } +} +)" + + }, + + { + "worm-hole", + + R"( +{ + "tableau piles": { + "count": 17, + "build policy": "no-build" + }, + "foundations": { + "present": false + }, + "cells": 1, + "hole": true +} +)" + } }; diff --git a/src/main/solver/solver.cpp b/src/main/solver/solver.cpp index 3aaceb8..1d0130c 100644 --- a/src/main/solver/solver.cpp +++ b/src/main/solver/solver.cpp @@ -286,7 +286,7 @@ void solver::print_header(long t, command_line_helper::streamliner_opt stream_op } void solver::print_result_csv(solver::result res) { - cout << ", " << res.sol_type + cout << "| " << res.sol_type << ", " << res.time.count() << ", " << res.states_searched << ", " << res.unique_states_searched @@ -300,7 +300,7 @@ void solver::print_result_csv(solver::result res) { } void solver::print_null_seed_info() { - cout << ", , , , , , , , , , , , "; + cout << "| , , , , , , , , , , "; } const vector<solver::node> solver::get_frontier() const { |
