});
}
- static GenRandInitFen() {
- return ChessRules.GenRandInitFen() + " 0000000000 -";
+ static GenRandInitFen(randomness) {
+ return ChessRules.GenRandInitFen(randomness) + " 0000000000 -";
}
getFen() {
);
}
+ getFenForRepeat() {
+ return (
+ this.getBaseFen() + "_" +
+ this.getTurnFen() + "_" +
+ this.getFlagsFen() + "_" +
+ this.getEnpassantFen() + "_" +
+ this.getReserveFen() + "_" +
+ this.getPromotedFen()
+ );
+ }
+
getReserveFen() {
let counts = new Array(10);
for (
}
// Used by the interface:
- getReservePpath(color, index) {
+ getReservePpath(index, color) {
return color + V.RESERVE_PIECES[index];
}
}
static get SEARCH_DEPTH() {
+ // High branching factor
return 2;
- } //high branching factor
+ }
evalPosition() {
let evaluation = super.evalPosition();
move.appear[0].p != V.PAWN ? move.appear[0].p.toUpperCase() : "";
return piece + "@" + V.CoordsToSquare(move.end);
}
-
- getLongNotation(move) {
- if (move.vanish.length > 0) return super.getLongNotation(move);
- return "@" + V.CoordsToSquare(move.end);
- }
};