[ More from Professor Snapp. -- David ]
-------- Original Message --------
Subject: Fwd: [Fwd: New Contest Question [also sent to the CSSA list]]
Date: Sun, 15 Feb 2004 00:46:02 -0500
From: Robert R. Snapp <[log in to unmask]>
> I don't understand what you meant by "In order to register a move,
> your agent
> should invoke the integer valued function...". Am I meant to write this
> function? If not, how do I call it? I can execute a call to the shell
> 1434', which can return a value. Is that what you meant?
Write a stub, or dummy function that assumes the interface provided
int play(int move);
For development, simulate the functionality of the given example.
I hope to link the submitted entries with a function that shares the
same interface, but also times moves, checks the legality of each move,
and may implement a socket interface between opposing agents.
Any move returned by play should be a legal move of the opposing agent.
> So to restate:
> You call python sunny 1. sunny formulates his move and calls `play
> 1434` which
> returns the value of blinky's move. sunny then makes his move and play
> continues until a winner is found. There is no need to error check
> input (if
> sunny receives a move, it is legal) nor handle any termination states
> than one player winning (if the other agent breaks a rule, kill my
> process and
> declare me the winner).
I think that's right. There will be a referee (software or human) that
determine the legality of each move. You only need to ensure that the
generated by your agent are legal ones. You don't need to error check
value that play returns.
> Do I have this right? If not, how so?
> Josh Gilbert.
Robert R. Snapp Office: 1-802-656-0735
Associate Professor Dept.: 1-802-656-3330
Department of Computer Science Fax: 1-802-656-0696
University of Vermont
Burlington, VT 05405 USA