projects
/
xogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Advance on Checkered. TODO: fix checks detection by checkered pieces
[xogo.git]
/
variants
/
Avalanche
/
class.js
diff --git
a/variants/Avalanche/class.js
b/variants/Avalanche/class.js
index
a1d4d54
..
dbbe9d5
100644
(file)
--- a/
variants/Avalanche/class.js
+++ b/
variants/Avalanche/class.js
@@
-118,7
+118,7
@@
export default class AvalancheRules extends ChessRules {
postPlay(move) {
const color = this.turn;
- const oppCol = C.GetOpp
Col
(color);
+ const oppCol = C.GetOpp
Turn
(color);
this.promotion = (
this.subTurn == 2 &&
move.end.x == (oppCol == 'w' ? 0 : this.size.x - 1) &&