shithub: plan9front

Download patch

ref: 958b4764994eb874ef0382f86f6dfe6ee5db2cf9
parent: 74befadb1457ccb955d2dfa3c9fb44653e4986f9
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Apr 2 16:23:40 EDT 2021

games/glendy: your complication had a complication (god damn it kemal)

--- a/sys/src/games/glendy.c	Fri Apr  2 16:05:15 2021
+++ b/sys/src/games/glendy.c	Fri Apr  2 16:23:40 2021
@@ -45,17 +45,17 @@
 
 char *mbuttons[] = 
 {
-	"easy",
-	"medium",
-	"hard",
+	"Easy",
+	"Medium",
+	"Hard",
 	0
 };
 
 char *rbuttons[] = 
 {
-	"new",
-	"reset",
-	"exit",
+	"New",
+	"Reset",
+	"Exit",
 	0
 };
 
@@ -386,7 +386,7 @@
 			nextdir = (nrand(++count) == 0)?dir:nextdir;
 		}
 	}
-	if(min <= 100)
+	if(min < 100 || min == 999)
 		domove(nextdir, p.x, p.y);
 	else
 		finished = Won;