projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rename getOppCol into static GetOppCol + start thinking about problems page
[vchess.git]
/
public
/
javascripts
/
variants
/
Zen.js
diff --git
a/public/javascripts/variants/Zen.js
b/public/javascripts/variants/Zen.js
index
0675fbc
..
7713b84
100644
(file)
--- a/
public/javascripts/variants/Zen.js
+++ b/
public/javascripts/variants/Zen.js
@@
-52,7
+52,7
@@
class ZenRules extends ChessRules
i += step[0];
j += step[1];
}
- if (V.OnBoard(i,j) && this.getColor(i,j) ==
this.g
etOppCol(color)
+ if (V.OnBoard(i,j) && this.getColor(i,j) ==
V.G
etOppCol(color)
&& this.getPiece(i,j) == asA)
{
// eat!