parseFen

Parses a FEN string into a Board and GameState.

Return

A pair of Board and GameState representing the position.

Parameters

fen

The FEN string to parse.

Throws

if the FEN string is invalid.