Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 532 Bytes

chess.ts.chess.indraw.md

File metadata and controls

26 lines (16 loc) · 532 Bytes

Home > chess.ts > Chess > inDraw

Chess.inDraw() method

Returns true or false if the game is drawn (50-move rule or insufficient material).

Signature:

inDraw(): boolean;

Returns:

boolean

Example

const chess = new Chess('4k3/4P3/4K3/8/8/8/8/8 b - - 0 78')
chess.inDraw()
// -> true