From b9a0418ab05a8b966ebd7e457371b01117de3de4 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Thu, 5 Apr 2018 15:04:32 +0100 Subject: Added many new games --- src/main/game/game_state.legal_moves.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src/main/game') 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::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 -- cgit v1.2.1