Home > chess.ts > Chess > load
Clears the board and loads the Forsyth–Edwards Notation (FEN) string.
Signature:
load(fen: string, options?: {
positionOnly?: boolean;
legal?: boolean;
}): boolean;
Parameter | Type | Description |
---|---|---|
fen | string | FEN string |
options | { positionOnly?: boolean; legal?: boolean; } | (Optional) |
Returns:
boolean
True if the position was successfully loaded, otherwise false.