diff options
| author | Tom Harley | 2019-04-10 23:49:49 +0100 |
|---|---|---|
| committer | Tom Harley | 2019-04-10 23:49:49 +0100 |
| commit | e486447d2e19095004275c355b0bf37ae7878a71 (patch) | |
| tree | a05dfa4da80e7e0a3f3f3997d014c0c6e7885e66 /metasol.cpp | |
| parent | Separate metasol/Solvitaire rules (diff) | |
| download | metasol-e486447d2e19095004275c355b0bf37ae7878a71.tar.gz metasol-e486447d2e19095004275c355b0bf37ae7878a71.zip | |
Minor fixes
Diffstat (limited to 'metasol.cpp')
| -rw-r--r-- | metasol.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/metasol.cpp b/metasol.cpp index 1b2fffa..bd19201 100644 --- a/metasol.cpp +++ b/metasol.cpp @@ -717,6 +717,9 @@ solve_status run_loop(ms_game_state *gs, ms_rules *r, ms_settings *s, debug("modal move found: %s\n", move_str_buf(&m)); move_decided(gs, r, &m, votes, vote_count); break; + } else if (vote_count == s->max_vote_count) { + debug("could not find any valid moves!\n"); + return UNSOLVABLE; } else { previous_vote_count = vote_count; vote_count += s->vote_increase_step; |
