rename getOppCol into static GetOppCol + start thinking about problems page
[vchess.git] / public / javascripts / base_rules.js
index b6efa71..718261d 100644 (file)
@@ -498,15 +498,15 @@ class ChessRules
        }
 
        // Get opponent color
-       getOppCol(color)
+       static GetOppCol(color)
        {
                return (color=="w" ? "b" : "w");
        }
 
        // Get next color (for compatibility with 3 and 4 players games)
-       getNextCol(color)
+       static GetNextCol(color)
        {
-               return this.getOppCol(color);
+               return V.GetOppCol(color);
        }
 
        // Pieces codes (for a clearer code)