playGame: Play a game of Tic-Tac-Toe using the two provided stragies.

Description Usage Arguments Value Examples

Description

Play a game of Tic-Tac-Toe using the two provided stragies.

Usage

1
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

1
2
3
px <- firstAvailableMovePlayer
py <- randomMovePlayer
finalGameState <- playGame(px,py)

rt3 documentation built on May 2, 2019, 6:38 a.m.