| state.board | board[y][x] = 'B' ยท 'W' ยท null | the whole board |
| state.me | 'B' | your colour (Black โ you move first) |
| state.opponent | 'W' | the other colour |
| state.size | 11 | board width ยท winLength = 5 |
| state.last | { x, y, who } | the stone just played |
| returns | { x: 5, y: 6 } | an EMPTY square to play |
Losing by hand? Bots don't miss a block. Write one and let it play for you โ