diff options
| author | christos <christos@NetBSD.org> | 2022-06-27 18:48:49 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2022-06-27 18:48:49 +0000 |
| commit | 370ff9bd74b934b0c85905668bc84dbb7fd6c3f9 (patch) | |
| tree | c369ea82e2f410e5bc91fdd00c2f43cdb1dac365 /games | |
| parent | 06a0aa120039fca72ac4f5973a0e3cddbb0961bb (diff) | |
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 (limited to 'games')
| -rw-r--r-- | games/robots/Makefile | 4 | ||||
| -rw-r--r-- | games/robots/main.c | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/games/robots/Makefile b/games/robots/Makefile index 6eb8f59387c..7f04314dc9b 100644 --- a/games/robots/Makefile +++ b/games/robots/Makefile @@ -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 --git a/games/robots/main.c b/games/robots/main.c index 3030b4126cc..0d0d06e3ba9 100644 --- a/games/robots/main.c +++ b/games/robots/main.c @@ -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, 1993\ #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> |
