From 67d30828dacdd4e1e7eab7b4c9289da51b5fb784 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Mon, 20 Jun 2016 20:56:54 +0200 Subject: [PATCH] doc fr --- src/arenas/Battleship/doc-fr.html | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/arenas/Battleship/doc-fr.html b/src/arenas/Battleship/doc-fr.html index 79cb99e..b720fcf 100644 --- a/src/arenas/Battleship/doc-fr.html +++ b/src/arenas/Battleship/doc-fr.html @@ -9,16 +9,28 @@

Votre bot répond par un array au format JSON.

Message d'initialisation de votre partie

l'arène envoie le message suivant: -
{"game-id":"1126","action":"init","game":"battleship","players":2,"board":"","player-index":0}
+
{"game-id":1609,"game":"battleship","action":"init","players":2,"player-index":0,"board":{"opponent":"stupidIA","width":"10","height":"10","ship1":"0","ship2":"1","ship3":"2","ship4":"1","ship5":"1","ship6":"0"}}

Si on décompose le tableau pour l'expliquer:

+
  • board + +
  • +

    Votre bot doit retourner le nom de votre bot format JSON:

       {"name":"botName"}