aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/search-state/game_state.cpp
diff options
context:
space:
mode:
authorCharlie Blake2018-07-19 17:54:45 +0100
committerCharlie Blake2018-07-19 17:54:45 +0100
commit40843e8fc66cb0bdeeee1b6df43673c8f245e677 (patch)
tree086de5ef486108048c7815af0e14e26e702a1366 /src/main/game/search-state/game_state.cpp
parentAdd whole pile legal moves gen (diff)
downloadmetasol-40843e8fc66cb0bdeeee1b6df43673c8f245e677.tar.gz
metasol-40843e8fc66cb0bdeeee1b6df43673c8f245e677.zip

Add tableau wraps logic

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 d032632..81fdd96 100644
--- a/src/main/game/search-state/game_state.cpp
+++ b/src/main/game/search-state/game_state.cpp
@@ -631,7 +631,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])) {
+ if (!is_next_legal_card(rules.sequence_build_pol, piles[sequences[i]][j-1], piles[sequences[i]][j], false)) { // TODO
solved = false;
break;
}