diff options
| author | Charlie Blake | 2018-07-23 10:31:37 +0100 |
|---|---|---|
| committer | Charlie Blake | 2018-07-23 10:31:37 +0100 |
| commit | 390a3cb4f15d84cde2312411b16203b70dbb2df5 (patch) | |
| tree | e725ac0713cd44cc33ff252bb9c768ef819b73c8 /src/main/game/search-state/game_state.cpp | |
| parent | Add tableau wraps logic (diff) | |
| download | metasol-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.cpp | 3 |
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; } |
