Add Checkered1 + fix last move highlights
[vchess.git] / client / src / variants / Alice.js
index e193bbd..d6fb0ac 100644 (file)
@@ -235,7 +235,8 @@ export class AliceRules extends ChessRules {
     return res;
   }
 
-  getCheckSquares(color) {
+  getCheckSquares() {
+    const color = this.turn;
     const pieces = Object.keys(V.ALICE_CODES);
     const kp = this.kingPos[color];
     const mirrorSide = pieces.includes(this.getPiece(kp[0], kp[1])) ? 1 : 2;