Skip to content

Comment on Who will win in this riveting chess game of Math.random() vs. Math.random()?

Comments

It randomly stopped without completing - is there some kind of timeout?

The game may have become a draw due to insufficient material, e.g., K-KB, K-KN, and of course K-K. Chess also has a 50-move rule that results in a draw.

https://en.wikipedia.org/wiki/Fifty-move_rule

This was probably it, didn't know of this rule. Effectively a real-world "timeout" !

Might be a bug, anything in the console?

(I'm not the author of chessboardjs, just stumbled over it)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.