Almost added TitanChess + EvolutionChess
[vchess.git] / client / src / variants / Takenmake.js
index 7226863..5c0ac08 100644 (file)
@@ -2,6 +2,7 @@ import { ChessRules } from "@/base_rules";
 import { randInt } from "@/utils/alea";
 
 export class TakenmakeRules extends ChessRules {
+
   setOtherVariables(fen) {
     super.setOtherVariables(fen);
     // Stack of "last move" only for intermediate captures
@@ -131,7 +132,7 @@ export class TakenmakeRules extends ChessRules {
       this.kingPos[c][0] = move.appear[0].x;
       this.kingPos[c][1] = move.appear[0].y;
     }
-    super.updateCastleFlags(move, piece);
+    super.updateCastleFlags(move, piece, c);
   }
 
   undo(move) {
@@ -197,4 +198,5 @@ export class TakenmakeRules extends ChessRules {
     delete moves[mIdx]["next"];
     return [moves[mIdx], move2];
   }
+
 };