Module Name:    src
Committed By:   christos
Date:           Mon Jun 27 18:48:49 UTC 2022

Modified Files:
        src/games/robots: Makefile main.c

Log Message:
Enable FANCY mode for debugging purposes:
  - To enable stand still mode (robot is not moving but waiting in place),
    specify a scorefile on the command line called <directory>/stand_still
  - To enable pattern roll mode (robot is changing which move to look first)
    specify a scorefile on the command line called <directory>/pattern_roll


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/games/robots/Makefile
cvs rdiff -u -r1.33 -r1.34 src/games/robots/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/games/robots/Makefile
diff -u src/games/robots/Makefile:1.16 src/games/robots/Makefile:1.17
--- src/games/robots/Makefile:1.16	Sat Feb  6 18:45:25 2010
+++ src/games/robots/Makefile	Mon Jun 27 14:48:49 2022
@@ -1,8 +1,8 @@
-#	$NetBSD: Makefile,v 1.16 2010/02/06 23:45:25 he Exp $
+#	$NetBSD: Makefile,v 1.17 2022/06/27 18:48:49 christos Exp $
 #	@(#)Makefile	8.1 (Berkeley) 5/31/93
 
 PROG=	robots
-CPPFLAGS+=-DMAX_PER_UID=5
+CPPFLAGS+=-DMAX_PER_UID=5 -DFANCY
 SRCS=	auto.c extern.c init_field.c main.c make_level.c move.c move_robs.c \
 	play_level.c query.c rnd_pos.c score.c flush_in.c
 MAN=	robots.6

Index: src/games/robots/main.c
diff -u src/games/robots/main.c:1.33 src/games/robots/main.c:1.34
--- src/games/robots/main.c:1.33	Sun Jul 26 11:38:22 2020
+++ src/games/robots/main.c	Mon Jun 27 14:48:49 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: main.c,v 1.33 2020/07/26 15:38:22 nia Exp $	*/
+/*	$NetBSD: main.c,v 1.34 2022/06/27 18:48:49 christos Exp $	*/
 
 /*
  * Copyright (c) 1980, 1993
@@ -39,12 +39,13 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19
 #if 0
 static char sccsid[] = "@(#)main.c	8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: main.c,v 1.33 2020/07/26 15:38:22 nia Exp $");
+__RCSID("$NetBSD: main.c,v 1.34 2022/06/27 18:48:49 christos Exp $");
 #endif
 #endif /* not lint */
 
 #include <ctype.h>
 #include <curses.h>
+#include <string.h>
 #include <err.h>
 #include <errno.h>
 #include <fcntl.h>

Reply via email to