From 162b86e7d94d51afec5c1161850d75ebadce9dee Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Sat, 29 Sep 2018 15:15:38 +0100 Subject: Fix reserve-foundation bug --- src/main/game/search-state/game_state.legal_moves.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/game') diff --git a/src/main/game/search-state/game_state.legal_moves.cpp b/src/main/game/search-state/game_state.legal_moves.cpp index 6f167b4..7194930 100644 --- a/src/main/game/search-state/game_state.legal_moves.cpp +++ b/src/main/game/search-state/game_state.legal_moves.cpp @@ -157,7 +157,7 @@ vector game_state::get_legal_moves(move parent_move) { if (rules.reserve_size > 0) from_piles.insert(from_piles.end(), reserve.begin(), reserve.end()); for (auto fp : from_piles) { - if (piles[fp].empty() || parent_move.to == fp) continue; + if (piles[fp].empty() || (parent_move.to == fp && parent_move.type != move::mtype::dominance)) continue; for (auto f : foundations) if (is_valid_foundations_move(fp, f)) -- cgit v1.2.1