diff --git a/src/arenas/connectFour/.doc-fr.html.kate-swp b/src/arenas/connectFour/.doc-fr.html.kate-swp new file mode 100644 index 0000000..f48bc61 Binary files /dev/null and b/src/arenas/connectFour/.doc-fr.html.kate-swp differ diff --git a/src/arenas/connectFour/doc-en.html b/src/arenas/connectFour/doc-en.html deleted file mode 100644 index 6f8d700..0000000 --- a/src/arenas/connectFour/doc-en.html +++ /dev/null @@ -1,48 +0,0 @@ -
Your program does not have to manage a whole part of noughts and crosses, just one turn
-The arbitrator program (the arena) builds a request with POST parameters as follow :
- -name | value |
---|---|
game | -
- String, always "connectFour". - Can be usefull if you use the same URL to play others games. - |
-
match_id | -
-String. Match the following regular expression : ^[0-9]+-(1|2)$ -The first number (digits before the hyphen) identifies the game. -The number after the hyphen indicates whether you are the first or second bot playing. -It will help 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 grid. - 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 b186055..4f3f71d 100644 --- a/src/arenas/connectFour/doc-fr.html +++ b/src/arenas/connectFour/doc-fr.html @@ -4,7 +4,7 @@Pour communiquer, l'arène (le serveur hébergeant botsarena) fait des requetes http(s) de type POST vers les bots. Le message est dans le corps de la requête au format JSON.
@@ -42,7 +42,7 @@Elle est contenue dans le champs board du message JSON.C'est un tableau à deux dimmensions au format JSON vous indiquant l'état de la grille.
- Exemple:
+ Exemple:
[["","","","X","0","",""], ["","","","X","","",""], diff --git a/src/arenas/tictactoe/doc-en.html b/src/arenas/tictactoe/doc-en.html index 55a9bcd..d7e0552 100644 --- a/src/arenas/tictactoe/doc-en.html +++ b/src/arenas/tictactoe/doc-en.html @@ -3,7 +3,7 @@ Do not trust the animated GIF of the site's home page.
It's the illustration of the overall operation of the arena, but it is wrong : the tictactoe only needs to send 10 variables to the bots.
The choice was therefore made to pass them by GET parameters and not by POST as shown in the animation. - +requests from BotsArena to your bot
To talk, botsarena (the server hosting botsarena) execute a POST request on your bot's http(s) server with the json as body
Your bot responds with a JSON array
@@ -170,14 +170,14 @@ X O X DRAW
To help you on how to manage communications between the bot and the arena, please take a look in the source PHP stupidIA .
+
To help you on how to manage communications between the bot and the arena, please take a look in the source PHP stupidIA .
This small html + javascript page will allow you to test and debug on your bot.
It will allow you to test your boot via its URL, against himself, a human or stupidIA.
Once ready, Express Sign your bot in the arena. p>
-
By default, browsers do not allow javascript to make Cross domain queries. It is a browser security. So there are three options: p> -
This small html + javascript page will allow you to test and debug on your bot.
It will allow you to test your boot via its URL, against himself, a human or stupidIA.
Once ready, Express Sign your bot in the arena.
By default, browsers do not allow javascript to make Cross domain queries. It is a browser security. So there are three options:
+This problem does not arise at the arena once your bot will be registered. Because in that case, it is the requests to the bot, not a browser.