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/game | |
| parent | Add versions of klondike (diff) | |
| download | metasol-b9a0418ab05a8b966ebd7e457371b01117de3de4.tar.gz metasol-b9a0418ab05a8b966ebd7e457371b01117de3de4.zip | |
Added many new games
Diffstat (limited to 'src/main/game')
| -rw-r--r-- | src/main/game/game_state.legal_moves.cpp | 13 |
1 files changed, 2 insertions, 11 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 |
