Description Usage Arguments Value Examples
Play a game of Tic-Tac-Toe using the two provided stragies.
1 | playGame(px, po)
|
px |
The X player strategy. |
po |
The O player strategy. |
gameState The final gameState after playing a full game.
1 2 3 | px <- firstAvailableMovePlayer
py <- randomMovePlayer
finalGameState <- playGame(px,py)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.