playGame {rt3} | R Documentation |
Play a game of Tic-Tac-Toe using the two provided stragies.
Description
Play a game of Tic-Tac-Toe using the two provided stragies.
Usage
playGame(px, po)
Arguments
px |
The X player strategy. |
po |
The O player strategy. |
Value
gameState The final gameState after playing a full game.
Examples
px <- firstAvailableMovePlayer
py <- randomMovePlayer
finalGameState <- playGame(px,py)
[Package rt3 version 0.1.2 Index]