positionOf

Returns the standard starting Position (the startpos FEN).

Return

the start position

Since

1.0.0-beta.1

Author

lunalobos


Factory function to create a Position object from a FEN string. Throws an exception if the FEN string is invalid or leads to an illegal position.

Return

the position corresponding to the entered fen string

Since

1.0.0-beta.1

Author

lunalobos

Throws

if the FEN string is invalid or leads to an illegal position.