parseGames

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

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

This is a facade created to enable exporting the code to JS, though it can also be used directly within the JS modules of any KMP project.