A game consists of a board and a player, it also tracks the number of turns and is used to play the game.
Call the play function to play out a game, or call turn to step through a game
turn()Game$turn()
play()Game$play()
new()Game$new(board = Board$new(mines = 20), player = Player$new())
print()Game$print(...)
clone()The objects of this class are cloneable with this method.
Game$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.