From e486447d2e19095004275c355b0bf37ae7878a71 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Wed, 10 Apr 2019 23:49:49 +0100 Subject: Minor fixes --- centre.cpp | 2 ++ metasol.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/centre.cpp b/centre.cpp index 9a0eb99..a8e6c76 100644 --- a/centre.cpp +++ b/centre.cpp @@ -698,6 +698,8 @@ user_data get_user_data() { d.run_cache_size = 1000000u; d.run_timeout = 20000u; + d.deal_seed_file = NULL; + return d; } 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