Several small improvements + integrate options + first working draft of Cwda
[vchess.git] / client / src / variants / Gomoku.js
index f003294..621f6e6 100644 (file)
@@ -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;