Home > chess.ts > Chess > clear
Clears the board.
Signature:
clear(keepHeaders?: boolean): void;
Parameter | Type | Description |
---|---|---|
keepHeaders | boolean | (Optional) |
Returns:
void
chess.clear()
chess.fen()
// -> '8/8/8/8/8/8/8/8 w - - 0 1' <- empty board