rename getOppCol into static GetOppCol + start thinking about problems page
[vchess.git] / public / javascripts / variants / Zen.js
index 0675fbc..7713b84 100644 (file)
@@ -52,7 +52,7 @@ class ZenRules extends ChessRules
                                i += step[0];
                                j += step[1];
                        }
-                       if (V.OnBoard(i,j) && this.getColor(i,j) == this.getOppCol(color)
+                       if (V.OnBoard(i,j) && this.getColor(i,j) == V.GetOppCol(color)
                                && this.getPiece(i,j) == asA)
                        {
                                // eat!