X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FSynchrone.js;h=ad14e0517073917ea17697241eb221c3c6aba952;hp=eb82bb55e1ae598ecf40bfcb6039a94d13b8daf9;hb=2c5d7b20742b802d9c47916915c1114bcfc9a9c3;hpb=9edfb7146fdc4dd08914b2a117d2852e705353aa diff --git a/client/src/variants/Synchrone.js b/client/src/variants/Synchrone.js index eb82bb55..ad14e051 100644 --- a/client/src/variants/Synchrone.js +++ b/client/src/variants/Synchrone.js @@ -215,7 +215,7 @@ export class SynchroneRules extends ChessRules { let moveSet = {}; let moves = []; oppCaptureMoves.forEach(m => { - // If another opponent capture with same endpoint already processed, skip: + // If another opponent capture with same endpoint already processed, skip const mHash = "m" + m.end.x + m.end.y; if (!moveSet[mHash]) { moveSet[mHash] = true; @@ -226,7 +226,8 @@ export class SynchroneRules extends ChessRules { }; V.PlayOnBoard(this.board, justDisappear); // Can I take on [m.end.x, m.end.y] ? If yes, add to list: - this.getCaptures(m.end.x, m.end.y, color).forEach(cm => moves.push(cm)); + this.getCaptures(m.end.x, m.end.y, color) + .forEach(cm => moves.push(cm)); V.UndoOnBoard(this.board, justDisappear); } });