return Object.assign(
ChessRules.ParseFen(fen),
{
- reserve: fenParts[4],
- promoted: fenParts[5],
+ reserve: fenParts[5],
+ promoted: fenParts[6],
}
);
}
super.updateVariables(move);
if (move.vanish.length == 2 && move.appear.length == 2)
return; //skip castle
- const color = this.turn;
+ const color = move.appear[0].c;
if (move.vanish.length == 0)
{
this.reserve[color][move.appear[0].p]--;
return "@" + V.CoordsToSquare(move.end);
}
}
-
-const VariantRules = CrazyhouseRules;