fix for broken cycle detection in isInCheck function
This commit is contained in:
parent
4e72bd4258
commit
fc73c872ed
|
|
@ -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)];
|
||||
|
|
|
|||
Loading…
Reference in New Issue