Plot a game

plot_moves(game, interactive = TRUE, sleep = 1)

Arguments

game

a [chess::game()] object, likely with moves identified

interactive

wait for 'Enter' after each move? Turn off to use in a gif

sleep

how long to wait between moves

Value

`NULL`, (invisibly) - called for the side-effect of plotting

Examples

if (FALSE) {
hikaru <- get_each_player_chessdotcom("hikaru", "202112")
m <- extract_moves_as_game(hikaru[11, ])
plot_moves(m)
}