diff options
| author | thecharlesblake | 2018-09-29 12:59:37 +0100 |
|---|---|---|
| committer | thecharlesblake | 2018-09-29 15:15:05 +0100 |
| commit | e55ca08eb9b3d46c8bb6fe0158450061c927a3e0 (patch) | |
| tree | 421352cc940c80aa34b234f2abda92534127be6e /src/main/game/search-state/game_state.cpp | |
| parent | Fix wrapping logic (diff) | |
| download | metasol-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.cpp | 2 |
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; } |
