Update doc-en.html

This commit is contained in:
Gnieark 2016-05-23 22:21:59 +02:00
parent 3d0e54b4c2
commit 660fec0df6

View File

@ -1,6 +1,6 @@
<h2>Functioning of duels for battle four</h2> <h2>Functioning of duels for battle four</h2>
<p>Your program does not have to manage a whole part of noughts and crosses, just one lap</p> <p>Your program does not have to manage a whole part of noughts and crosses, just one turn</p>
<h3>Connect four's wire rack</h3> <h3>Connect four's grid</h3>
<ul> <ul>
<li>weight: 7 cases</li> <li>weight: 7 cases</li>
<li>height: 6 cases</li> <li>height: 6 cases</li>
@ -8,7 +8,7 @@
</p> </p>
<h3>Request Arena -> your bot</h3> <h3>Request Arena -> your bot</h3>
<p>The arbitrator program (the arena) build a request with POST parameters as follow :</p> <p>The arbitrator program (the arena) builds a request with POST parameters as follow :</p>
<table class="tabledoc"> <table class="tabledoc">
<tr><th>name</th><th>value</th></tr> <tr><th>name</th><th>value</th></tr>
@ -16,20 +16,20 @@
<td>game</td> <td>game</td>
<td> <td>
String, always "connectFour".<br/> String, always "connectFour".<br/>
Can be usefull if you use the same URL for play to others games. Can be usefull if you use the same URL to play others games.
</td> </td>
</tr> </tr>
<tr> <tr>
<td>match_id</td> <td>match_id</td>
<td> <td>
String. Match the following regular expression : ^[0-9]+-(1|2)$<br/> String. Match the following regular expression : ^[0-9]+-(1|2)$<br/>
The first number (digits before the hyphen) identified the game.<br/> The first number (digits before the hyphen) identifies the game.<br/>
The number after the hyphen indicates whether you are the first or second bot in the order to play.<br/> The number after the hyphen indicates whether you are the first or second bot playing.<br/>
It will serve you if your AI makes statistics on games. It will help you if your AI makes statistics on games.
</td> </td>
</tr> </tr>
<tr><td>you</td><td>your symbol in the grid</td></tr> <tr><td>you</td><td>your symbol in the grid</td></tr>
<tr><td>grid</td><td>String, representing an array in JSON format. this is the wire.<br/> <tr><td>grid</td><td>String, representing an array in JSON format. this is the grid.<br/>
the first seven values are the bottom horizontal line.<br/> the first seven values are the bottom horizontal line.<br/>
Exemple:<br/> Exemple:<br/>
<pre> <pre>
@ -44,5 +44,5 @@ It will serve you if your AI makes statistics on games.
</td></tr> </td></tr>
</table> </table>
<h3>what return your bot</h3> <h3>what your bot should respond</h3>
<p>only one char: 0,1,2,3,4,5 or 6 that indicates the column you want to play</p> <p>only one char: 0,1,2,3,4,5 or 6 that indicates the column you want to play</p>