diff options
Diffstat (limited to 'src/main/game/game_state.cpp')
| -rw-r--r-- | src/main/game/game_state.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main/game/game_state.cpp b/src/main/game/game_state.cpp index 4caf9d9..8105cb3 100644 --- a/src/main/game/game_state.cpp +++ b/src/main/game/game_state.cpp @@ -214,10 +214,7 @@ bool game_state::is_solved() const { } } - if (rules.hole && hole.size() != rules.max_rank * 4) { - return false; - } - return true; + return !rules.hole || hole.size() == rules.max_rank * 4; } ostream& game_state::print(ostream& stream) const { |
