Update doc-en.html
This commit is contained in:
parent
3d0e54b4c2
commit
660fec0df6
|
@ -1,6 +1,6 @@
|
|||
<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>
|
||||
<h3>Connect four's wire rack</h3>
|
||||
<p>Your program does not have to manage a whole part of noughts and crosses, just one turn</p>
|
||||
<h3>Connect four's grid</h3>
|
||||
<ul>
|
||||
<li>weight: 7 cases</li>
|
||||
<li>height: 6 cases</li>
|
||||
|
@ -8,7 +8,7 @@
|
|||
</p>
|
||||
|
||||
<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">
|
||||
<tr><th>name</th><th>value</th></tr>
|
||||
|
@ -16,20 +16,20 @@
|
|||
<td>game</td>
|
||||
<td>
|
||||
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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>match_id</td>
|
||||
<td>
|
||||
String. Match the following regular expression : ^[0-9]+-(1|2)$<br/>
|
||||
The first number (digits before the hyphen) identified the game.<br/>
|
||||
The number after the hyphen indicates whether you are the first or second bot in the order to play.<br/>
|
||||
It will serve you if your AI makes statistics on games.
|
||||
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 playing.<br/>
|
||||
It will help you if your AI makes statistics on games.
|
||||
</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/>
|
||||
Exemple:<br/>
|
||||
<pre>
|
||||
|
@ -44,5 +44,5 @@ It will serve you if your AI makes statistics on games.
|
|||
</td></tr>
|
||||
</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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user