diff options
| author | thecharlesblake | 2018-04-05 15:04:32 +0100 |
|---|---|---|
| committer | thecharlesblake | 2018-04-05 15:04:32 +0100 |
| commit | b9a0418ab05a8b966ebd7e457371b01117de3de4 (patch) | |
| tree | 10f7365bc31ebe670804944dc76ce0410c8b50f5 /src/main | |
| parent | Add versions of klondike (diff) | |
| download | metasol-b9a0418ab05a8b966ebd7e457371b01117de3de4.tar.gz metasol-b9a0418ab05a8b966ebd7e457371b01117de3de4.zip | |
Added many new games
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/game/game_state.legal_moves.cpp | 13 | ||||
| -rw-r--r-- | src/main/input-output/input/sol_preset_types.cpp | 444 | ||||
| -rw-r--r-- | src/main/solvability/solvability_calc.cpp | 2 |
3 files changed, 447 insertions, 12 deletions
diff --git a/src/main/game/game_state.legal_moves.cpp b/src/main/game/game_state.legal_moves.cpp index 7eceb7c..24304a1 100644 --- a/src/main/game/game_state.legal_moves.cpp +++ b/src/main/game/game_state.legal_moves.cpp @@ -25,17 +25,8 @@ vector<game_state::move> game_state::get_legal_moves( if (rules.stock_size > 0 && rules.stock_deal_t == sdt::TABLEAU_PILES && !piles[stock].empty()) { - // Only does this if none of the tableau piles are empty - bool no_tableau_empty = true; - for (auto tab_ref : tableau_piles) { - if (piles[tab_ref].empty()) { - no_tableau_empty = false; - break; - } - } - if (no_tableau_empty) { - moves.emplace_back(get_stock_tableau_move()); - } + + moves.emplace_back(get_stock_tableau_move()); } // If the stock is empty and we are allowed to re-deal, move the waste diff --git a/src/main/input-output/input/sol_preset_types.cpp b/src/main/input-output/input/sol_preset_types.cpp index 755f48a..b3bf7f8 100644 --- a/src/main/input-output/input/sol_preset_types.cpp +++ b/src/main/input-output/input/sol_preset_types.cpp @@ -452,5 +452,449 @@ std::map<string, string> sol_preset_types::mp = { )" }, + { + "alina", + + R"( +{ + "tableau piles": { + "count": 13, + "build policy": "any-suit", + "spaces policy": "no-build" + }, + "foundations removable": true, + "cells": 1 +} +)" + + }, + { + "castles-of-spain", + + R"( +{ + "tableau piles": { + "count": 13, + "build policy": "red-black" + }, + "foundations removable": true +} +)" + + }, + { + "delta-star", + + R"( +{ + "tableau piles": { + "count": 12, + "build policy": "same-suit" + }, + "foundations initial card": true +} +)" + + }, + { + "martha", + + R"( +{ + "tableau piles": { + "count": 12, + "build policy": "red-black" + }, + "foundations removable": true, + "foundations initial card": true +} +)" + + }, + { + "one-cell", + + R"( +{ + "tableau piles": { + "count": 13, + "build policy": "red-black" + }, + "foundations removable": true, + "foundations initial card": true, + "cells": 1 +} +)" + + }, + { + "two-cell", + + R"( +{ + "tableau piles": { + "count": 13, + "build policy": "red-black" + }, + "foundations removable": true, + "foundations initial card": true, + "cells": 2 +} +)" + + }, + { + "free-cell-3-cell", + + R"( +{ + "tableau piles": { + "build policy": "red-black" + }, + "cells": 3 +} +)" + + }, + { + "free-cell-2-cell", + + R"( +{ + "tableau piles": { + "build policy": "red-black" + }, + "cells": 2 +} +)" + + }, + { + "free-cell-1-cell", + + R"( +{ + "tableau piles": { + "build policy": "red-black" + }, + "cells": 1 +} +)" + + }, + { + "free-cell-0-cell", + + R"( +{ + "tableau piles": { + "build policy": "red-black" + }, + "cells": 1 +} +)" + + }, + { + "free-cell-7-pile", + + R"( +{ + "tableau piles": { + "count": 7, + "build policy": "red-black" + }, + "cells": 4 +} +)" + + }, + { + "free-cell-6-pile", + + R"( +{ + "tableau piles": { + "count": 6, + "build policy": "red-black" + }, + "cells": 4 +} +)" + + }, + { + "free-cell-5-pile", + + R"( +{ + "tableau piles": { + "count": 5, + "build policy": "red-black" + }, + "cells": 4 +} +)" + + }, + { + "bakers-game", + + R"( +{ + "tableau piles": { + "build policy": "same-suit", + "move built group": true, + "spaces policy": "kings" + }, + "cells": 4 +} +)" + + }, + { + "eight-off", + + R"( +{ + "tableau piles": { + "build policy": "same-suit" + }, + "cells": 8 +} +)" + + }, + { + "fore-cell", + + R"( +{ + "tableau piles": { + "build policy": "red-black", + "spaces policy": "kings" + }, + "cells": 4 +} +)" + + }, + { + "penguin", + R"( + +{ + "tableau piles": { + "count": 7, + "build policy": "same-suit", + "move built group": true, + "spaces policy": "kings" + }, + "cells": 7, + "foundations initial card": true +} +)" + + }, + { + "sea-towers", + R"( + +{ + "tableau piles": { + "count": 10, + "build policy": "same-suit", + "move built group": true, + "spaces policy": "kings" + }, + "cells": 4, +} +)" + + }, + { + "duchess", + R"( + +{ + "tableau piles": { + "count": 4, + "build policy": "red-black", + "move built group": true + }, + "reserve size": 12, + "foundations initial card": true, + "stock size": 36 +} +)" + + }, + { + "chamelion", + R"( + +{ + "tableau piles": { + "count": 3, + "build policy": "any-suit", + "move built group": true + }, + "reserve size": 13, + "reserve stacked": true, + "stock size": 36 +} +)" + + }, + { + "fan", + R"( + +{ + "tableau piles": { + "count": 18, + "build policy": "same-suit", + "spaces policy": "kings" + }, + "foundations removable": true +} +)" + + }, + { + "scotch-patience", + R"( + +{ + "tableau piles": { + "count": 18, + "build policy": "red-black", + "spaces policy": "no-build" + }, + "foundations removable": true +} +)" + + }, + { + "blind-alleys", + R"( + +{ + "tableau piles": { + "count": 6, + "build policy": "red-black", + "move built group": true + }, + "stock size": 30, + "foundations initial card": true, + "foundations removable": true +} +)" + + }, + { + "east-haven", + R"( + +{ + "tableau piles": { + "count": 7, + "build policy": "red-black", + "move built group": true + }, + "foundations removable": true, + "stock size": 31, + "stock deal type": "tableau piles" +} +)" + + }, + { + "northwest-territory", + R"( + +{ + "tableau piles": { + "build policy": "red-black", + "move built group": true, + "spaces policy": "kings", + "diagonal deal": true + }, + "foundations removable": true, + "reserve size": 16 +} +)" + + }, + { + "king-albert", + R"( + +{ + "tableau piles": { + "count": 9, + "build policy": "red-black", + "diagonal deal": true + }, + "foundations removable": true, + "reserve size": 7 +} +)" + + }, + { + "king-albert-kings-in-spaces", + R"( + +{ + "tableau piles": { + "count": 9, + "build policy": "red-black", + "spaces policy": "kings", + "diagonal deal": true + }, + "foundations removable": true, + "reserve size": 7 +} +)" + + }, + { + "spiderette", + + R"( +{ + "tableau piles": { + "count": 7, + "build policy": "any-suit", + "move built group": true, + "move built group policy": "same-suit", + "diagonal deal": true + }, + "foundations complete piles": true, + "stock size": 24, + "stock deal type": "tableau piles" +} +)" + + }, + { + "will-o-the-wisp", + + R"( +{ + "tableau piles": { + "count": 7, + "build policy": "any-suit", + "move built group": true, + "move built group policy": "same-suit" + }, + "foundations complete piles": true, + "stock size": 31, + "stock deal type": "tableau piles" +} +)" + } };
\ No newline at end of file diff --git a/src/main/solvability/solvability_calc.cpp b/src/main/solvability/solvability_calc.cpp index 2f90710..dbfb3a4 100644 --- a/src/main/solvability/solvability_calc.cpp +++ b/src/main/solvability/solvability_calc.cpp @@ -81,7 +81,7 @@ void solvability_calc::print_end_re_eval_msg() const { ///////////////////// void solvability_calc::calculate_solvability_percentage() { - int current_seed = 0; + int current_seed = 10; // TODO:change millisec timeout(10); inc_t_coeffs coeffs(0.4, 0.0, 1.0); |
