aboutsummaryrefslogtreecommitdiff
path: root/src/main/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/game')
-rw-r--r--src/main/game/game_state.legal_moves.cpp13
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