Step toward a one-page application
[vchess.git] / public / javascripts / variants / Zen.js
index 0675fbc..6a568db 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!
@@ -225,5 +225,3 @@ class ZenRules extends ChessRules
                }
        }
 }
-
-const VariantRules = ZenRules;