Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 589 Bytes

chess.ts.chess.clear.md

File metadata and controls

33 lines (20 loc) · 589 Bytes

Home > chess.ts > Chess > clear

Chess.clear() method

Clears the board.

Signature:

clear(keepHeaders?: boolean): void;

Parameters

Parameter Type Description
keepHeaders boolean (Optional)

Returns:

void

Example

chess.clear()
chess.fen()
// -> '8/8/8/8/8/8/8/8 w - - 0 1' <- empty board