[LRUG] Battleship: Ruby Fight Club

Tim Cowlishaw tim at timcowlishaw.co.uk
Thu Sep 29 02:24:32 PDT 2011


Hi all,

A couple more questions for Paul, sorry:

1) What would be a reasonable upper bound to the runtime of a single
'turn' of the game? Is there one?

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?

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

Thanks,

Tim


On Mon, Sep 26, 2011 at 12:59 PM, Paul Battley <pbattley at gmail.com> wrote:
> On 26 September 2011 10:59, Daniel Lucraft <dan.lucraft at gmail.com> wrote:
>> So just to check I understand from the code: you are told that a battleship
>> has been sunk, but NOT the precise location or orientation of the ship.
>
> You're not told explicitly, but you should be able to infer it from a
> comparison of the previous and current states.
>
> Paul.
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>



More information about the Chat mailing list