);
}
- static GenRandInitFen(randomness) {
- const res = ChessRules.GenRandInitFen(randomness);
+ static GenRandInitFen(options) {
+ const res = ChessRules.GenRandInitFen(options);
// Add initFen field:
return res.slice(0, -1) + res.split(' ')[0] + " -";
}
);
});
const passTarget =
- (x != this.kingPos[c][0] || y != this.kingPos[c][0]) ? c : oppCol;
+ (x != this.kingPos[c][0] || y != this.kingPos[c][1]) ? c : oppCol;
movesNow.push(
new Move({
start: { x: x, y: y },