Description Usage Arguments Value Examples
Internally this player calls getMoves and then picks the first entry in the list of moves. A player is a function that takes a game state as input and returns a valid move index.
1 |
gameState |
The gameState that the player should act on. |
moveIndex Index to a valid move as returned by the getMoves function.
1 2 | gameState <- startGame()
move <- firstAvailableMovePlayer(gameState)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.