[LRUG] Battleship: Ruby Fight Club

Paul Battley pbattley at gmail.com
Thu Sep 29 03:22:23 PDT 2011


On 29 September 2011 10:24, Tim Cowlishaw <tim at timcowlishaw.co.uk> wrote:
> 1) What would be a reasonable upper bound to the runtime of a single
> 'turn' of the game? Is there one?

Let's say 10 seconds.

> 2) If I were to write a player that simulates games as part of its
> strategy, can I rely on the existing game engine for this, or would I
> fall afoul of the measures (described earlier in the thread) designed
> to prevent nefarious players from using reflection to inspect the
> state of the opponent's board?

You won't have any access to the game classes.

> 3) Does all the code required by the player need to be contained in
> the one file, or can it require other files?

I'm inclined to say that it should be contained in one file, unless
anyone disagrees …

Paul.



More information about the Chat mailing list