X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FPocketknight.js;h=41dbb725fb0bb61fd6dd0d07820749ca2210ebbe;hb=b2e8c34e0158f512741d67b8a1c25425e0b8747e;hp=f40265e6075c0444914c0916005833e36ab6c072;hpb=39fe711a185ee73c907f3d61ddd459a33f40696b;p=vchess.git diff --git a/client/src/variants/Pocketknight.js b/client/src/variants/Pocketknight.js index f40265e6..41dbb725 100644 --- a/client/src/variants/Pocketknight.js +++ b/client/src/variants/Pocketknight.js @@ -3,7 +3,7 @@ import { randInt } from "@/utils/alea"; export class PocketknightRules extends ChessRules { - hoverHighlight(x, y) { + hoverHighlight([x, y]) { // Testing move validity results in an infinite update loop. // TODO: find a way to test validity anyway. return (this.subTurn == 2 && this.board[x][y] == V.EMPTY);