From adc2dca2c9589a827d4b4aa4e6bbd7ad488dc8cf Mon Sep 17 00:00:00 2001
From: gnieark Your program does not have to manage a whole part of noughts and crosses, just one lapFunctioning of duels for battle four
+Connect four's wire rack
+
+
+
The arbitrator program (the arena) build a request with POST parameters as follow :
+ +name | value |
---|---|
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. + |
+
you | your symbol in the grid |
grid | String, representing an array in JSON format. this is the wire. + the first seven values are the bottom horizontal line. + Exemple: + + [["","","","X","0","",""], + ["","","","X","","",""], + ["","","","","","",""], + ["","","","","","",""], + ["","","","","","",""], + ["","","","","","",""]] ++ + |
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 vIl 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