ttt_game: Tic-Tac-Toe Game

Description Usage Value Examples

Description

Object that encapsulates a tic-tac-toe game.

Usage

1

Value

ttt_game object

Examples

1
2
3
4
x <- ttt_game()
x$play(3)
x$play(5)
x$show_board()

Example output

[1] TRUE
[1] TRUE
    A B C
   ------
 1| . . .
 2| . O .
 3| X . .

tictactoe documentation built on May 2, 2019, 2:54 a.m.