gameFromPgn function
Parses a pgn
and builds a game from it.
If variant
is not supplied, the parser will look for a variant tag.
Implementation
Game gameFromPgn(
String pgn, {
Variant? variant,
String? startPosition,
bool strictVariantTag = true,
}) =>
gameFromPgnData(
parsePgn(pgn),
variant: variant,
startPosition: startPosition,
strictVariantTag: strictVariantTag,
);