});
}
- 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 (