aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/search-state/game_state.cpp
diff options
context:
space:
mode:
authorCharlie Blake2018-07-23 10:31:37 +0100
committerCharlie Blake2018-07-23 10:31:37 +0100
commit390a3cb4f15d84cde2312411b16203b70dbb2df5 (patch)
treee725ac0713cd44cc33ff252bb9c768ef819b73c8 /src/main/game/search-state/game_state.cpp
parentAdd tableau wraps logic (diff)
downloadmetasol-390a3cb4f15d84cde2312411b16203b70dbb2df5.tar.gz
metasol-390a3cb4f15d84cde2312411b16203b70dbb2df5.zip

Add foundation wrap logic and fix top-of-waste bug

Diffstat (limited to 'src/main/game/search-state/game_state.cpp')
-rw-r--r--src/main/game/search-state/game_state.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/game/search-state/game_state.cpp b/src/main/game/search-state/game_state.cpp
index 81fdd96..dbb3ea1 100644
--- a/src/main/game/search-state/game_state.cpp
+++ b/src/main/game/search-state/game_state.cpp
@@ -4,7 +4,6 @@
#include <vector>
#include <ostream>
-#include <random>
#include <algorithm>
#include <functional>
@@ -631,7 +630,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)) { // TODO
+ if (!is_next_legal_card(rules.sequence_build_pol, piles[sequences[i]][j-1], piles[sequences[i]][j], false)) {
solved = false;
break;
}