static get CAMEL() { return 'c'; }
static get WILDEBEEST() { return 'w'; }
+ static get PIECES() {
+ return ChessRules.PIECES.concat([V.CAMEL,V.WILDEBEEST]);
+ }
+
static get steps() {
return Object.assign(
ChessRules.steps, //add camel moves:
pieces[c][knight2Pos] = 'n';
pieces[c][rook2Pos] = 'r';
}
- let fen = pieces["b"].join("") +
+ return pieces["b"].join("") +
"/ppppppppppp/11/11/11/11/11/11/PPPPPPPPPPP/" +
pieces["w"].join("").toUpperCase() +
- " 1111";
- return fen;
+ " 1111 w";
}
}