Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/robots Enable FANCY mode for debugging purposes:
details: https://anonhg.NetBSD.org/src/rev/a9fd4b16af0f
branches: trunk
changeset: 368194:a9fd4b16af0f
user: christos <christos%NetBSD.org@localhost>
date: Mon Jun 27 18:48:49 2022 +0000
description:
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
diffstat:
games/robots/Makefile | 4 ++--
games/robots/main.c | 5 +++--
2 files changed, 5 insertions(+), 4 deletions(-)
diffs (38 lines):
diff -r 008e417aa910 -r a9fd4b16af0f games/robots/Makefile
--- a/games/robots/Makefile Mon Jun 27 16:44:58 2022 +0000
+++ b/games/robots/Makefile Mon Jun 27 18:48:49 2022 +0000
@@ -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
diff -r 008e417aa910 -r a9fd4b16af0f games/robots/main.c
--- a/games/robots/main.c Mon Jun 27 16:44:58 2022 +0000
+++ b/games/robots/main.c Mon Jun 27 18:48:49 2022 +0000
@@ -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 @@
#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>
Home |
Main Index |
Thread Index |
Old Index