practice threefold repetition win - closes an issue

I don't know which issue since I'm in the train and there's no wifi.
pull/2656/head
Thibault Duplessis 2017-02-10 17:02:45 +01:00
parent b123b777f4
commit 362e58a8fd
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ module.exports = function(root, goal, nbMoves) {
switch (goal.result) {
case 'drawIn':
case 'equalIn':
if (node.threefold) return true;
if (isDrawish(node) === false) return false;
if (nbMoves > goal.moves) return false;
if (root.gameOver() === 'draw') return true;