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

Description Usage Arguments Value Examples

View source: R/main.R

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 29, 2017, 8 p.m.