From: Chris Boyle Date: Sat, 26 Sep 2015 17:54:15 +0000 (+0100) Subject: Enforce more than one dot in Galaxies puzzles. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=f9027226a05b6e2fc49d0256262edc6cc3a8c569;p=sgt-puzzles.git Enforce more than one dot in Galaxies puzzles. At minimum size (3x3) Galaxies can generate a pre-solved single dot game. You have to add and remove a line to get the victory flash which is a bit weird, so just prevent this. --- diff --git a/galaxies.c b/galaxies.c index a50efe4..53d6fab 100644 --- a/galaxies.c +++ b/galaxies.c @@ -1301,6 +1301,8 @@ generate: game_update_dots(state); + if (state->ndots == 1) goto generate; + #ifdef DEBUGGING { char *tmp = encode_game(state);