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
/
base_rules.js
diff --git
a/public/javascripts/base_rules.js
b/public/javascripts/base_rules.js
index
b6efa71
..
718261d
100644
(file)
--- a/
public/javascripts/base_rules.js
+++ b/
public/javascripts/base_rules.js
@@
-498,15
+498,15
@@
class ChessRules
}
// Get opponent color
}
// Get opponent color
-
g
etOppCol(color)
+
static G
etOppCol(color)
{
return (color=="w" ? "b" : "w");
}
// Get next color (for compatibility with 3 and 4 players games)
{
return (color=="w" ? "b" : "w");
}
// Get next color (for compatibility with 3 and 4 players games)
-
g
etNextCol(color)
+
static G
etNextCol(color)
{
{
- return
this.g
etOppCol(color);
+ return
V.G
etOppCol(color);
}
// Pieces codes (for a clearer code)
}
// Pieces codes (for a clearer code)