wm: glendy

Download patch

ref: 59c901b50e67d54a822fedbac2808d56b499f9ec
parent: ffd13429678415bae437f9156983c8d3b5770052
author: mkf <mkf@hp.lan>
date: Fri Apr 19 17:25:52 EDT 2024

cli: enable random moves, use human for both sides

--- a/cli.c
+++ b/cli.c
@@ -203,13 +203,15 @@
 	/*
 	 * todo: handle argv properly
 	 */
-
-	/* OpenBSD ignores this
-	 *	srand(time(nil));
-	 */
+	ptype[0] = Human;
+	ptype[1] = Human;
+	/* OpenBSD ignores this */
+	srand(time(nil));
+	 
 	initlevel();
 	drawlevel();
-	while(input() != Err);
+	while(input() != Err)
+		;
 
 	return 0;
 }