Learn R Programming

chessR (version 1.5.2)

plot_moves: Plot a game

Description

Plot a game

Usage

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

Value

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

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

Examples

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

Run the code above in your browser using DataLab