fix for broken cycle detection in isInCheck function

This commit is contained in:
Jesse D. McDonald 2020-04-18 16:05:50 -05:00
parent 4e72bd4258
commit fc73c872ed
1 changed files with 1 additions and 1 deletions

View File

@ -712,7 +712,7 @@ class Game {
const from = queue[0].from;
queue = queue.slice(1);
seen.add(game.toString());
seen.add(game._board.toString());
/* look for another piece that can reach the king or continue the chain */
const pairs = [...game.board.findPieces(other, true, true)];