icehouse_parser | R Documentation |
icehouse_parser()
provides a parser to be used with PPN movetext.
looney_pyramid_parser()
is an alias.
icehouse_parser(movetext = character(), metadata = list(), ...)
looney_pyramid_parser(movetext = character(), metadata = list(), ...)
movetext |
A named character vector of move text. |
metadata |
A named list of metadata |
... |
Passed to |
A named list of data frames with parsed game states.
if (requireNamespace("ppn", quietly = TRUE)) {
l <- ppn::read_ppn(system.file("ppn/martian-chess.ppn", package = "piecenikr"),
parse = FALSE)[[1L]]
game <- icehouse_parser(l$movetext, l$metadata)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.