X-Git-Url: https://git.auder.net/assets/icon_infos.svg?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FDobutsu.js;h=60d0017db15448334b2ab02788be700b73af2acf;hb=b90120e062404b8c656d4f38e66727df8a7e1c5a;hp=4d151c3d98a1063b580f8f1557f77a3d0c6c8d94;hpb=ecb8f91b8b8ea909baabc8077baf1ca92b4b6664;p=vchess.git diff --git a/client/src/variants/Dobutsu.js b/client/src/variants/Dobutsu.js index 4d151c3d..60d0017d 100644 --- a/client/src/variants/Dobutsu.js +++ b/client/src/variants/Dobutsu.js @@ -199,7 +199,7 @@ export class DobutsuRules extends ChessRules { } } - getPotentialHenMoves([x, y]) { + getPotentialHenMoves(sq) { const c = this.turn; const forward = (c == 'w' ? -1 : 1); const steps = V.steps[V.ROOK].concat([[forward, 1], [forward, -1]]);