From 370ff9bd74b934b0c85905668bc84dbb7fd6c3f9 Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 27 Jun 2022 18:48:49 +0000 Subject: 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 /stand_still - To enable pattern roll mode (robot is changing which move to look first) specify a scorefile on the command line called /pattern_roll --- games/robots/Makefile | 4 ++-- games/robots/main.c | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'games') 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 #include +#include #include #include #include -- cgit