mirror of
https://github.com/vattam/BSDGames.git
synced 2025-12-21 03:14:50 +00:00
releasing version 2.17-1
git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@11092 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
a.out
|
||||
*.d
|
||||
*.i
|
||||
*.s
|
||||
*.d.tmp
|
||||
robots
|
||||
pathnames.h
|
||||
robots.6
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: auto.c,v 1.6 2004/01/27 20:30:30 jsm Exp $ */
|
||||
/* $NetBSD: auto.c,v 1.7 2004/08/27 09:06:25 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@@ -42,17 +42,15 @@
|
||||
* Algo :
|
||||
* IF scrapheaps don't exist THEN
|
||||
* IF not in danger THEN
|
||||
* stay at current position;
|
||||
* ELSE move away from the closest robot;
|
||||
* stay at current position
|
||||
* ELSE
|
||||
* move away from the closest robot
|
||||
* FI
|
||||
* ELSE
|
||||
* find closest heap;
|
||||
* find closest robot;
|
||||
* IF scrapheap is adjacenHEN
|
||||
* move behind the scrapheap
|
||||
* ELSE
|
||||
* move away from the closest robot
|
||||
* FI
|
||||
* find closest heap
|
||||
* find closest robot
|
||||
* IF scrapheap is adjacent THEN
|
||||
* move behind the scrapheap
|
||||
* ELSE
|
||||
* take the move that takes you away from the
|
||||
* robots and closest to the heap
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: main.c,v 1.20 2004/01/27 20:30:30 jsm Exp $ */
|
||||
/* $NetBSD: main.c,v 1.21 2004/11/05 21:30:32 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: main.c,v 1.20 2004/01/27 20:30:30 jsm Exp $");
|
||||
__RCSID("$NetBSD: main.c,v 1.21 2004/11/05 21:30:32 dsl Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@@ -76,7 +76,7 @@ main(ac, av)
|
||||
bad_arg = FALSE;
|
||||
for (++av; ac > 1 && *av[0]; av++, ac--)
|
||||
if (av[0][0] != '-')
|
||||
if (isdigit(av[0][0]))
|
||||
if (isdigit((unsigned char)av[0][0]))
|
||||
Max_per_uid = atoi(av[0]);
|
||||
else {
|
||||
Scorefile = av[0];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: move.c,v 1.11 2003/08/07 09:37:36 agc Exp $ */
|
||||
/* $NetBSD: move.c,v 1.12 2004/08/27 09:07:08 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
@@ -34,7 +34,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: move.c,v 1.11 2003/08/07 09:37:36 agc Exp $");
|
||||
__RCSID("$NetBSD: move.c,v 1.12 2004/08/27 09:07:08 christos Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@@ -90,9 +90,13 @@ get_move()
|
||||
#endif
|
||||
else {
|
||||
over:
|
||||
if (Auto_bot)
|
||||
if (Auto_bot) {
|
||||
c = automove();
|
||||
else
|
||||
if (!Jump) {
|
||||
usleep(10000);
|
||||
refresh();
|
||||
}
|
||||
} else
|
||||
c = getchar();
|
||||
if (isdigit(c)) {
|
||||
Count = (c - '0');
|
||||
@@ -181,7 +185,7 @@ teleport:
|
||||
flush_in();
|
||||
goto ret;
|
||||
case CTRL('L'):
|
||||
wrefresh(curscr);
|
||||
refresh();
|
||||
break;
|
||||
case EOF:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user