read_ppn | R Documentation |
Read/write Portable Piecepack Notation (PPN) files
read_ppn(file, parse = TRUE)
write_ppn(games = list(), file = "")
file |
Filename, if "" will use |
parse |
Logical of whether to parse the moves in the ppn file |
games |
A list of parsed PPN games (as returned by |
A list, for each game in the file a list containing info about the game
plot_move()
, animate_game()
, and cat_move()
for visualizing parsed ppn games.
list.files(system.file("ppn", package = "ppgames"))
file <- system.file("ppn/tic-tac-toe.ppn", package = "ppgames")
games <- read_ppn(file)
tmp <- tempfile(fileext = ".ppn")
write_ppn(games, tmp)
unlink(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.