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
This commit is contained in:
parent
ec01565c69
commit
02e7c0b99a
|
@ -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
|
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||||
|
|
||||||
PROG= robots
|
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 \
|
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
|
play_level.c query.c rnd_pos.c score.c flush_in.c
|
||||||
MAN= robots.6
|
MAN= robots.6
|
||||||
|
|
|
@ -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
|
* Copyright (c) 1980, 1993
|
||||||
|
@ -39,12 +39,13 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
|
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
|
||||||
#else
|
#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
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <curses.h>
|
#include <curses.h>
|
||||||
|
#include <string.h>
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
Loading…
Reference in New Issue