X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FHypnotic.js;h=3b678433686a97976ee57c020389dcd227f4d2d6;hp=a429c7c459cc50046476240bddc86c9449eeaba2;hb=4313762da3237b04f204e121a20cab3ba7bb5dd2;hpb=cee75a57d2f4f89c89d64cefbab55d839a238ed9 diff --git a/client/src/variants/Hypnotic.js b/client/src/variants/Hypnotic.js index a429c7c4..3b678433 100644 --- a/client/src/variants/Hypnotic.js +++ b/client/src/variants/Hypnotic.js @@ -23,8 +23,8 @@ export class HypnoticRules extends ChessRules { ); } - static GenRandInitFen(randomness) { - return ChessRules.GenRandInitFen(randomness) + " -"; + static GenRandInitFen(options) { + return ChessRules.GenRandInitFen(options) + " -"; } setOtherVariables(fen) { @@ -69,7 +69,7 @@ export class HypnoticRules extends ChessRules { this.getPiece(x, y) == V.KING // No castling with enemy king (...yes, should eat it but...) ? super.getSlideNJumpMoves( - [x, y], V.steps[V.ROOK].concat(V.steps[V.BISHOP]), "oneStep") + [x, y], V.steps[V.ROOK].concat(V.steps[V.BISHOP]), 1) : super.getPotentialMovesFrom([x, y]); return moves; }