X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FGomoku.js;h=621f6e6f4a34fbcf03e3085ec795b27fddeb6883;hb=4313762da3237b04f204e121a20cab3ba7bb5dd2;hp=f0032945378484a280a3764215b1f89827335932;hpb=7c05a5f2297bea540c700ebceb0cc8b03a7f6775;p=vchess.git diff --git a/client/src/variants/Gomoku.js b/client/src/variants/Gomoku.js index f0032945..621f6e6f 100644 --- a/client/src/variants/Gomoku.js +++ b/client/src/variants/Gomoku.js @@ -3,6 +3,10 @@ import { randInt } from "@/utils/alea"; export class GomokuRules extends ChessRules { + static get Options() { + return null; + } + static get Monochrome() { return true; } @@ -103,7 +107,7 @@ export class GomokuRules extends ChessRules { let moves = []; for (let i = 0; i < 19; i++) { for (let j=0; j < 19; j++) { - if (this.board[i][j] == V.EMPTY) moves.push(this.doClick(i, j)); + if (this.board[i][j] == V.EMPTY) moves.push(this.doClick([i, j])); } } return moves;