X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FTwokings.js;h=52aebc32aa6e9a192f417ea6fd5a37ac7a92123b;hb=d20657a67d3cc1b0bb9c319750e4f7cc78376228;hp=ce30d65378b3e6babbd4b0d546626958bc8f911a;hpb=305ede7ec3753fc669b7c86af5b5c5b2fc78a164;p=vchess.git diff --git a/client/src/variants/Twokings.js b/client/src/variants/Twokings.js index ce30d653..52aebc32 100644 --- a/client/src/variants/Twokings.js +++ b/client/src/variants/Twokings.js @@ -34,9 +34,10 @@ export class TwokingsRules extends CoregalRules { } // Not scanning king positions. In this variant, scan the board everytime. - scanKings(fen) {} + scanKings() {} - getCheckSquares(color) { + getCheckSquares() { + const color = this.turn; let squares = []; const oppCol = V.GetOppCol(color); for (let i=0; i