initBoardWithFEN

fun initBoardWithFEN(board: Board2D, player1: Player, player2: Player)

Initialises a given board with the piece placement in the FEN string.

Throws

if the piece placement does not match the dimensions of the board.