projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Start server implementation for correspondance play (early debug stage)
[vchess.git]
/
public
/
javascripts
/
variants
/
Losers.js
diff --git
a/public/javascripts/variants/Losers.js
b/public/javascripts/variants/Losers.js
index
c9509c6
..
33c8109
100644
(file)
--- a/
public/javascripts/variants/Losers.js
+++ b/
public/javascripts/variants/Losers.js
@@
-42,7
+42,7
@@
class LosersRules extends ChessRules
atLeastOneCapture()
{
const color = this.turn;
atLeastOneCapture()
{
const color = this.turn;
- const oppCol =
this.g
etOppCol(color);
+ const oppCol =
V.G
etOppCol(color);
for (let i=0; i<V.size.x; i++)
{
for (let j=0; j<V.size.y; j++)
for (let i=0; i<V.size.x; i++)
{
for (let j=0; j<V.size.y; j++)
@@
-183,5
+183,3
@@
class LosersRules extends ChessRules
" w -"; //no en-passant
}
}
" w -"; //no en-passant
}
}
-
-const VariantRules = LosersRules;