From f9027226a05b6e2fc49d0256262edc6cc3a8c569 Mon Sep 17 00:00:00 2001 From: Chris Boyle Date: Sat, 26 Sep 2015 18:54:15 +0100 Subject: [PATCH] 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. --- galaxies.c | 2 ++ 1 file changed, 2 insertions(+) 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);