projects
/
xogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix complete rules of Cwda
[xogo.git]
/
variants
/
Weiqi
/
class.js
diff --git
a/variants/Weiqi/class.js
b/variants/Weiqi/class.js
index
714ada8
..
04ad40a
100644
(file)
--- a/
variants/Weiqi/class.js
+++ b/
variants/Weiqi/class.js
@@
-89,7
+89,7
@@
export default class WeiqiRules extends ChessRules {
constructor(o) {
super(o);
constructor(o) {
super(o);
- if (!o.
genFenOnly && !o.
diagram) {
+ if (!o.diagram) {
this.passListener = () => {
if (this.turn == this.playerColor) {
let mv = {
this.passListener = () => {
if (this.turn == this.playerColor) {
let mv = {
@@
-137,7
+137,7
@@
export default class WeiqiRules extends ChessRules {
if (this.board[x][y] != "" || this.turn != this.playerColor)
return null;
const color = this.turn;
if (this.board[x][y] != "" || this.turn != this.playerColor)
return null;
const color = this.turn;
- const oppCol = C.GetOpp
Col
(color);
+ const oppCol = C.GetOpp
Turn
(color);
let move = new Move({
appear: [new PiPo({x: x, y: y, c: color, p: 's'})],
vanish: [],
let move = new Move({
appear: [new PiPo({x: x, y: y, c: color, p: 's'})],
vanish: [],
@@
-201,7
+201,7
@@
export default class WeiqiRules extends ChessRules {
if (move.pass) {
if (this.turn != this.playerColor)
super.displayMessage(null, "pass", "pass-text", 2000);
if (move.pass) {
if (this.turn != this.playerColor)
super.displayMessage(null, "pass", "pass-text", 2000);
- this.turn = C.GetOpp
Col
(this.turn);
+ this.turn = C.GetOpp
Turn
(this.turn);
}
else
super.play(move);
}
else
super.play(move);