igGameCenter API Developer Guide >> List of available games >> Renju |
This page describes all specific details related to the Renju game.
All information below is connected to the following board:
|
Place value meaning |
The value of 1 contained in place parameter
in all XML responses corresponds to the black stones, which moves first.
The value of 2 corresponds to the white stones. |
Move code format |
When a player wants to place a stone in some cell an external application should send
a coordinate of the cell as a move code.
I.e. A15 code has to be sent for the top left cell (look at the screenshot above). |
Game board data format | ||||||
Below is an example of how the board data is encoded in XML response coming from
handler API script:
<gameData>
<board>00000000000000012....002210000000000</board> </gameData> The board tag contains a string of 225 digits representing the board cells row-by-row. I.e. the first digit represents the state of the A15 cell, the second digit represents the B1 cell, 15th digit - O15, 16th - A14 and so on till the 64th digit representing O1 cell. Each digit in the mentioned above string can have the following values:
|
Game options | ||||
There is one additional option specific to the Renju game:
This option can be included as additional parameter when sending a POST request to the handler API script with the SETUP command. The gameOptions part of the response received from the handler will be of the following form:
<gameOptions>
<hidden>0</hidden> <scored>1</scored> <renjuType>free</stones> </gameOptions> |
Game specific error messages | ||||||||||||||||||||||||||||||
|