Add Checkered1 + fix last move highlights
[vchess.git] / client / src / variants / Twokings.js
index 68910e7..52aebc3 100644 (file)
@@ -36,7 +36,8 @@ export class TwokingsRules extends CoregalRules {
   // Not scanning king positions. In this variant, scan the board everytime.
   scanKings() {}
 
-  getCheckSquares(color) {
+  getCheckSquares() {
+    const color = this.turn;
     let squares = [];
     const oppCol = V.GetOppCol(color);
     for (let i=0; i<V.size.x; i++) {