projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typo in Minishogi
[vchess.git]
/
client
/
src
/
variants
/
Yote.js
diff --git
a/client/src/variants/Yote.js
b/client/src/variants/Yote.js
index
d836bbd
..
6863026
100644
(file)
--- a/
client/src/variants/Yote.js
+++ b/
client/src/variants/Yote.js
@@
-3,6
+3,10
@@
import { randInt } from "@/utils/alea";
export class YoteRules extends ChessRules {
export class YoteRules extends ChessRules {
+ static get Options() {
+ return null;
+ }
+
static get HasFlags() {
return false;
}
static get HasFlags() {
return false;
}
@@
-72,7
+76,7
@@
export class YoteRules extends ChessRules {
);
}
);
}
- static GenRandInitFen(
randomness
) {
+ static GenRandInitFen() {
return "6/6/6/6/6 w 0 12,12 -,-";
}
return "6/6/6/6/6 w 0 12,12 -,-";
}
@@
-242,7
+246,7
@@
export class YoteRules extends ChessRules {
const mv = this.doClick([x, y]);
return (!!mv ? [mv] : []);
}
const mv = this.doClick([x, y]);
return (!!mv ? [mv] : []);
}
- if (x >= V.size.x) return this.getReserveMoves(
[x, y]
);
+ if (x >= V.size.x) return this.getReserveMoves(
x
);
return this.getPotentialPawnMoves([x, y]);
}
return this.getPotentialPawnMoves([x, y]);
}