<li><em>game-id</em> string identifying the party.</li>
<li><em>action</em> string identifying the phase, <em>init</em> at this step <em>play-turn</em> at the next step.</li>
<li><em>game</em> string identifying the game. Always "tictactoe". it can be used if you give a single URL for multiple bots.</li>
<li><em>players</em> Int indicating the number of players in the game, still 2 on Tic Tac Toe.</li>
<li><em>board</em> Empty or unused at this step, see next chapter.</li>
<li><em>player-index</em> int The order of your bot in turns. The first player is 0, second is 2.</li>
</ul>
<p>Your bot should return his name JSON format:</p>
<pre>
{"name":"botName"}
</pre>
<p>The arena currently does not check this response, the init step was included to ensure compatibility with <ahref="https://github.com/moul/bolosseum"> Bolosseum </a> .
If your bot returns a blank page at this step (action = init), it will work.</p>
<h3>Message asking you to play (only one turn) </h3>
<p>The Arena sends as example the following message:</p>
<p> To help you on how to manage communications between the bot and the arena, please take a look in the <ahref ="https://github.com/gnieark/IAS/blob/master/stupidIATictactoe.php "> source PHP stupidIA </a>.</p>
<p> This small html + javascript page will allow you to test and debug on your bot. <br/> It will allow you to test your boot via its URL, against himself, a human or stupidIA. <br/> Once ready, Express Sign your bot in the arena. </p>
<p> By default, browsers do not allow javascript to make Cross domain queries. It is a browser security. So there are three options: </p>
<ul><li> You add to your bot <ahref="https://www.qwant.com/?q=allow%20cross%20domain%20query%20http%20header&t=all"> headers that allow cross POST queries</a></li>.
<li> More simple, you download the page (right click, save target as) and put it in your bot VHOST time tests. All the code (html, css and javascript) is included in the page without external resource, in order that it can be easily downloaded and used. </li>
<li> You use a web browser that supports JavaScript and allows cross domain queries. <ahref="https://www.thepolyglotdeveloper.com/2014/08/bypass-cors-errors-testing-apis-locally/"> It seems possible </a>. </li>
<p> 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. </p>