aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/search-state/game_state.cpp
diff options
context:
space:
mode:
authorthecharlesblake2018-09-29 12:59:37 +0100
committerthecharlesblake2018-09-29 15:15:05 +0100
commite55ca08eb9b3d46c8bb6fe0158450061c927a3e0 (patch)
tree421352cc940c80aa34b234f2abda92534127be6e /src/main/game/search-state/game_state.cpp
parentFix wrapping logic (diff)
downloadmetasol-e55ca08eb9b3d46c8bb6fe0158450061c927a3e0.tar.gz
metasol-e55ca08eb9b3d46c8bb6fe0158450061c927a3e0.zip

Correct legal moves for found base & remove wraps

Diffstat (limited to 'src/main/game/search-state/game_state.cpp')
-rw-r--r--src/main/game/search-state/game_state.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/game/search-state/game_state.cpp b/src/main/game/search-state/game_state.cpp
index 17fdc29..36f92d7 100644
--- a/src/main/game/search-state/game_state.cpp
+++ b/src/main/game/search-state/game_state.cpp
@@ -640,7 +640,7 @@ bool game_state::is_solved() const {
} else if (rules.sequence_count > 0) {
for (pile::ref i = 0; i < sequences.size() && solved; i++) {
for (pile::ref j = piles[sequences[i]].size(); j-- > 2;) {
- if (!is_next_legal_card(rules.sequence_build_pol, piles[sequences[i]][j-1], piles[sequences[i]][j], false)) {
+ if (!is_next_legal_card(rules.sequence_build_pol, piles[sequences[i]][j-1], piles[sequences[i]][j])) {
solved = false;
break;
}