Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 737 Bytes

chess.ts.chess.load.md

File metadata and controls

30 lines (19 loc) · 737 Bytes

Home > chess.ts > Chess > load

Chess.load() method

Clears the board and loads the Forsyth–Edwards Notation (FEN) string.

Signature:

load(fen: string, options?: {
        positionOnly?: boolean;
        legal?: boolean;
    }): boolean;

Parameters

Parameter Type Description
fen string FEN string
options { positionOnly?: boolean; legal?: boolean; } (Optional)

Returns:

boolean

True if the position was successfully loaded, otherwise false.