Almost added TitanChess + EvolutionChess
[vchess.git] / client / src / variants / Chakart.js
index 1d12e42..1795e30 100644 (file)
@@ -4,6 +4,7 @@ import { ArrayFun } from "@/utils/array";
 import { randInt } from "@/utils/alea";
 
 export class ChakartRules extends ChessRules {
+
   static get PawnSpecs() {
     return SuicideRules.PawnSpecs;
   }
@@ -394,7 +395,7 @@ export class ChakartRules extends ChessRules {
       return (
         V.OnBoard(x + forward, y) &&
         (
-          this.board[x + forward][y] != oppCol ||
+          this.board[x + forward][y] == V.EMPTY ||
           (
             V.OnBoard(x + forward, y + 1) &&
             this.board[x + forward][y + 1] != V.EMPTY &&
@@ -1470,4 +1471,5 @@ export class ChakartRules extends ChessRules {
     }
     return notation;
   }
+
 };