From 36e0b3e5fe951ef4265a0da56201960d52ed7ee6 Mon Sep 17 00:00:00 2001 From: christos Date: Sat, 15 May 1999 23:56:35 +0000 Subject: Add -A for automatic playing mode. Make the score file MI --- robots/move.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'robots/move.c') 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())) -- cgit v1.2.3