projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typo
[vchess.git]
/
client
/
src
/
variants
/
Gomoku.js
diff --git
a/client/src/variants/Gomoku.js
b/client/src/variants/Gomoku.js
index
f003294
..
621f6e6
100644
(file)
--- 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 {
export class GomokuRules extends ChessRules {
+ static get Options() {
+ return null;
+ }
+
static get Monochrome() {
return true;
}
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++) {
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;
}
}
return moves;