Description Usage Arguments Value Examples
Create an human tic-tac-toe player
1 |
name |
player name |
ttt_human
object
Fields
name
Player name
Methods
getmove(game, prompt = "choose move (e.g. A1) > ", ...)
Communicate with users to type in the next move.
Input:
game
: ttt_game
object
prompt
: prompt message
Output: a character of a move
1 2 3 4 5 | ## Not run:
p <- ttt_human()
p$getmove()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.