return false;
}
- genRandInitFen(seed) {
- const baseFen = super.genRandInitFen(seed);
- const fen = baseFen.replace("rnbqkbnr/pppppppp", "4k3/8");
- const fenParts = baseFen.split(" ");
- let others = JSON.parse(fenParts[3]);
- others["flags"] = others["flags"].substr(0, 2) + "88";
- return fenParts.slice(0, 3).join(" ") + " " + JSON.stringify(others);
+ genRandInitBaseFen() {
+ let baseFen = super.genRandInitBaseFen();
+ return {
+ fen: baseFen.fen.replace("rnbqkbnr/pppppppp", "4k3/8"),
+ o: {flags: baseFen.o.flags.substr(0, 2) + "88"}
+ };
}
initReserves() {
// Just do not update any reserve (infinite supply)
updateReserve() {}
- getCurrentScore(move) {
- const score = super.getCurrentScore(move);
+ getCurrentScore(move_s) {
+ const score = super.getCurrentScore(move_s);
if (score != "*")
return score;
// Check pawns connection: