shithub: puzzles

Download patch

ref: 3c2a32014314d9b89616b2d6a686a19182cd5284
parent: 1ea3c92c17d8bc542059955c2e1446f44b6eef96
author: Simon Tatham <anakin@pobox.com>
date: Wed May 12 14:53:47 EDT 2004

Ahem. Seed validation was completely broken.

[originally from svn r4222]

--- a/rect.c
+++ b/rect.c
@@ -672,7 +672,7 @@
         } else if (n == '_') {
             /* do nothing */;
         } else if (n > '0' && n <= '9') {
-            squares += atoi(seed-1);
+            squares++;
             while (*seed >= '0' && *seed <= '9')
                 seed++;
         } else