From e486447d2e19095004275c355b0bf37ae7878a71 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Wed, 10 Apr 2019 23:49:49 +0100 Subject: Minor fixes --- metasol.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'metasol.cpp') 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; -- cgit v1.2.1