Home > chess.ts > Chess > inDraw
Returns true or false if the game is drawn (50-move rule or insufficient material).
Signature:
inDraw(): boolean;
Returns:
boolean
const chess = new Chess('4k3/4P3/4K3/8/8/8/8/8 b - - 0 78')
chess.inDraw()
// -> true