Get action: action object
Examples
Tic-Tac-Toe
{
"action": "place_piece",
"params": {
"index": 3
}
}Battleship
{
"action": "place_ships",
"params": {
"ships": [
// destroyer
{"x": 3, "y": 4},
{"x": 3, "y": 5},
// submarine
{"x": 7, "y": 4},
{"x": 8, "y": 4},
{"x": 9, "y": 4},
//...other ships
]
}
}Passing a turn
Last updated