Allow "replays" when randomly generating puzzles
dkl9

dkl9 commited on 2025-209 19:12:10
Showing 1 changed files, with 2 additions and 0 deletions.

... ...
@@ -49,6 +49,8 @@ if (gotitButton) {
49 49
 }
50 50
 
51 51
 function playedToday(s) {
52
+    if (puzzleNum == 0)
53
+        return false;
52 54
     if (!s)
53 55
         s = (localStorage.getItem("score") || "").split("\n");
54 56
     return s[0] && s[0].split(" ")[1] == puzzleNum;
55 57