X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FMadhouse.js;h=72c41cd889ae55248be6f258967865aa8122256f;hp=5f90904e04d889e6302328f88ae52b2f6e71ddb4;hb=7c05a5f2297bea540c700ebceb0cc8b03a7f6775;hpb=cdab566355412821c9187078ee0864ceb30545de diff --git a/client/src/variants/Madhouse.js b/client/src/variants/Madhouse.js index 5f90904e..72c41cd8 100644 --- a/client/src/variants/Madhouse.js +++ b/client/src/variants/Madhouse.js @@ -3,7 +3,7 @@ import { randInt } from "@/utils/alea"; export class MadhouseRules 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);