diff --git a/src/arenas/connectFour/doc-en.html b/src/arenas/connectFour/doc-en.html new file mode 100644 index 0000000..27c1c55 --- /dev/null +++ b/src/arenas/connectFour/doc-en.html @@ -0,0 +1,48 @@ +

Functioning of duels for battle four

+

Your program does not have to manage a whole part of noughts and crosses, just one lap

+

Connect four's wire rack

+ +

+ +

Request Arena -> your bot

+

The arbitrator program (the arena) build a request with POST parameters as follow :

+ + + + + + + + + + + + + +
namevalue
game + String, always "connectFour".
+ Can be usefull if you use the same URL for play to others games. +
match_id +String. Match the following regular expression : ^[0-9]+-(1|2)$
+The first number (digits before the hyphen) identified the game.
+The number after the hyphen indicates whether you are the first or second bot in the order to play.
+It will serve you if your AI makes statistics on games. +
youyour symbol in the grid
gridString, representing an array in JSON format. this is the wire.
+ the first seven values are the bottom horizontal line.
+ Exemple:
+
+  [["","","","X","0","",""],
+   ["","","","X","","",""],
+   ["","","","","","",""],
+   ["","","","","","",""],
+   ["","","","","","",""],
+   ["","","","","","",""]]
+  
+ +
+ +

what return your bot

+

only one char: 0,1,2,3,4,5 or 6 that indicates the column you want to play

diff --git a/src/arenas/connectFour/doc-fr.html b/src/arenas/connectFour/doc-fr.html index a9ef362..a5b0b3b 100644 --- a/src/arenas/connectFour/doc-fr.html +++ b/src/arenas/connectFour/doc-fr.html @@ -43,4 +43,4 @@ L'arène fait une requête http(s) avec les parametres POST suivants vers v

Réponse de votre bot

-

Il indique la colonne dans laquelle vous souhaitez jouer 0 à 7

+

Seulement un caractère. Il indique la colonne dans laquelle vous souhaitez jouer 0 à 7