aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--centre.cpp2
-rw-r--r--metasol.cpp3
2 files changed, 5 insertions, 0 deletions
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;