projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some fixes. Loser implemented. Draft Extinction,Crazyhouse,Switching
[vchess.git]
/
public
/
javascripts
/
variants
/
Antiking.js
diff --git
a/public/javascripts/variants/Antiking.js
b/public/javascripts/variants/Antiking.js
index
84f774a
..
f908495
100644
(file)
--- a/
public/javascripts/variants/Antiking.js
+++ b/
public/javascripts/variants/Antiking.js
@@
-42,7
+42,7
@@
class AntikingRules extends ChessRules
const piece2 = this.getPiece(x2,y2);
const color1 = this.getColor(x1,y1);
const color2 = this.getColor(x2,y2);
const piece2 = this.getPiece(x2,y2);
const color1 = this.getColor(x1,y1);
const color2 = this.getColor(x2,y2);
- return
!["a","A"].includes(piece2)
&&
+ return
piece2 != "a"
&&
((piece1 != "a" && color1 != color2) || (piece1 == "a" && color1 == color2));
}
((piece1 != "a" && color1 != color2) || (piece1 == "a" && color1 == color2));
}