From 44851410785b64e40ea4c9d70d4e6470ef20ed61 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Sun, 2 Sep 2018 21:34:37 +0100 Subject: Remove extra comma when streamliner solves --- src/main/solver/solver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/solver/solver.cpp b/src/main/solver/solver.cpp index 3aaceb8..0d3f4ed 100644 --- a/src/main/solver/solver.cpp +++ b/src/main/solver/solver.cpp @@ -300,7 +300,7 @@ void solver::print_result_csv(solver::result res) { } void solver::print_null_seed_info() { - cout << ", , , , , , , , , , , , "; + cout << ", , , , , , , , , , , "; } const vector solver::get_frontier() const { -- cgit v1.2.1 From dba58c016a4305b73b6475588f94a66dd55ad969 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Sun, 2 Sep 2018 21:47:32 +0100 Subject: Change first comma to bar on output --- src/main/solver/solver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/solver/solver.cpp b/src/main/solver/solver.cpp index 0d3f4ed..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::get_frontier() const { -- cgit v1.2.1 From b592c4e4c54ceb33628dd9a9925a4dce853fa23f Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Sun, 2 Sep 2018 21:55:57 +0100 Subject: Add new games (canister etc) --- src/main/input-output/input/sol_preset_types.cpp | 128 +++++++++++++++++++++++ 1 file changed, 128 insertions(+) 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 @@ -1391,6 +1391,134 @@ map sol_preset_types::mp = { }, "two decks": true } +)" + + }, + + { + "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 +} )" } -- cgit v1.2.1