shithub: puzzles

Download patch

ref: f9027226a05b6e2fc49d0256262edc6cc3a8c569
parent: ba9e0d586ec8d2662d7ff6065797c6ef327623a7
author: Chris Boyle <chris@boyle.name>
date: Sat Sep 26 14:54:15 EDT 2015

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.

--- a/galaxies.c
+++ b/galaxies.c
@@ -1301,6 +1301,8 @@
 
     game_update_dots(state);
 
+    if (state->ndots == 1) goto generate;
+
 #ifdef DEBUGGING
     {
         char *tmp = encode_game(state);