devtools::install_github("paladinic/r_tic_tac_toe")
R> ttt::start()
it's x's turn
__________________
c1 c2 c3
1 # # #
2 # # #
3 # # #
R> row: 2
R> col: 3
it's o's turn
__________________
c1 c2 c3
1 # # #
2 # # x
3 # # #
R> row: 2
R> col: 1
it's x's turn
__________________
c1 c2 c3
1 # # #
2 o # x
3 # # #
...
player x won
c1 c2 c3
1 x o x
2 o o x
3 # # x
GAME OVER
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.