Skip to contents

icehouse_parser() provides a parser to be used with PPN movetext. looney_pyramid_parser() is an alias.

Usage

icehouse_parser(movetext = character(), metadata = list(), ...)

looney_pyramid_parser(movetext = character(), metadata = list(), ...)

Arguments

movetext

A named character vector of move text.

metadata

A named list of metadata

...

Passed to ppn::default_parser().

Value

A named list of data frames with parsed game states.

Examples

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)
}