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
parent
b123b777f4
commit
362e58a8fd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue