ttt_simulate {tictactoe} | R Documentation |
Simulate Tic-Tac-Toe Games between AIs
Description
Simulate Tic-Tac-Toe Games between AIs
Usage
ttt_simulate(player1, player2 = player1, N = 1000L, verbose = TRUE,
showboard = FALSE, pauseif = integer(0))
Arguments
player1 , player2 |
AI players to simulate |
N |
number of simulation games |
verbose |
if true, show progress report |
showboard |
if true, game transition is displayed |
pauseif |
pause the simulation when specified results occur. This can be useful for explorative purposes. |
Value
integer vector of simulation outcomes
Examples
res <- ttt_simulate(ttt_ai(), ttt_ai())
prop.table(table(res))
[Package tictactoe version 0.2.2 Index]