loadPgn

fun loadPgn(pgn: String)

Loads a game from a PGN string, resetting the board and game state.

Parameters

pgn

The PGN string to load.