projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify Game logic a bit + some advances on Chakart
[vchess.git]
/
client
/
src
/
variants
/
Antiking1.js
diff --git
a/client/src/variants/Antiking1.js
b/client/src/variants/Antiking1.js
index
ac28c31
..
ab86f69
100644
(file)
--- a/
client/src/variants/Antiking1.js
+++ b/
client/src/variants/Antiking1.js
@@
-176,7
+176,8
@@
export class Antiking1Rules extends BerolinaRules {
return res;
}
return res;
}
- getCheckSquares(color) {
+ getCheckSquares() {
+ const color = this.turn;
let res = [];
const oppCol = V.GetOppCol(color);
if (this.isAttacked(this.kingPos[color], oppCol))
let res = [];
const oppCol = V.GetOppCol(color);
if (this.isAttacked(this.kingPos[color], oppCol))