diff options
author | christos <christos@NetBSD.org> | 1999-05-15 23:56:35 +0000 |
---|---|---|
committer | christos <christos@NetBSD.org> | 1999-05-15 23:56:35 +0000 |
commit | 36e0b3e5fe951ef4265a0da56201960d52ed7ee6 (patch) | |
tree | 6b71e3215f92724a7dac1883a247d5b15aba483c /robots/move.c | |
parent | 8da3d5189a9a79e6cd764ad062df763e1cb5a962 (diff) | |
download | bsdgames-darwin-36e0b3e5fe951ef4265a0da56201960d52ed7ee6.tar.gz bsdgames-darwin-36e0b3e5fe951ef4265a0da56201960d52ed7ee6.tar.zst bsdgames-darwin-36e0b3e5fe951ef4265a0da56201960d52ed7ee6.zip |
Add -A for automatic playing mode.
Make the score file MI
Diffstat (limited to 'robots/move.c')
-rw-r--r-- | robots/move.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/robots/move.c b/robots/move.c index ff8476cd..db08c84c 100644 --- a/robots/move.c +++ b/robots/move.c @@ -1,4 +1,4 @@ -/* $NetBSD: move.c,v 1.7 1998/07/24 23:28:02 hubertf Exp $ */ +/* $NetBSD: move.c,v 1.8 1999/05/15 23:56:36 christos Exp $ */ /* * Copyright (c) 1980, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: move.c,v 1.7 1998/07/24 23:28:02 hubertf Exp $"); +__RCSID("$NetBSD: move.c,v 1.8 1999/05/15 23:56:36 christos Exp $"); #endif #endif /* not lint */ @@ -94,7 +94,10 @@ get_move() #endif else { over: - c = getchar(); + if (Auto_bot) + c = automove(); + else + c = getchar(); if (isdigit(c)) { Count = (c - '0'); while (isdigit(c = getchar())) |