parseGames

fun parseGames(pgnInput: String, idSupplier: () -> Any? = { null }): List<Game>

Parses a string containing one or more games in Portable Game Notation (PGN) format. Games are returned in Game.GameMode.ANALYSIS mode, making them mutable for subsequent use.

Return

A list of successfully parsed Game objects.

Since

1.0.0-beta.1

Author

lunalobos

Parameters

pgnInput

the complete string containing one or more PGN games.

idSupplier

a lambda that provides different IDs each time it is called

Throws

Parser.ParserException

for bad pgn input

for bad documented games