return [];
}
- static GenRandInitFen(randomness) {
- return ChessRules.GenRandInitFen(randomness).slice(0, -2);
+ static GenRandInitFen(options) {
+ return ChessRules.GenRandInitFen(options).slice(0, -2);
}
getPotentialMovesFrom([x, y]) {
case V.KING:
// Do not allow castling to escape from check
oppMoves = super.getSlideNJumpMoves(
- [i, j],
- V.steps[V.ROOK].concat(V.steps[V.BISHOP]),
- "oneStep"
- );
+ [i, j], V.steps[V.ROOK].concat(V.steps[V.BISHOP]), 1);
break;
}
for (let om of oppMoves) {