projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implemented and tested DarkChess. Berolina, Upsidedown should be OK. Marseille: TODO
[vchess.git]
/
public
/
javascripts
/
variants
/
Loser.js
diff --git
a/public/javascripts/variants/Loser.js
b/public/javascripts/variants/Loser.js
index
6731d32
..
e6eb320
100644
(file)
--- a/
public/javascripts/variants/Loser.js
+++ b/
public/javascripts/variants/Loser.js
@@
-2,16
+2,6
@@
class LoserRules extends ChessRules
{
static get HasFlags() { return false; }
{
static get HasFlags() { return false; }
- setOtherVariables(fen)
- {
- const parsedFen = V.ParseFen(fen);
- const epSq = parsedFen.enpassant != "-"
- ? V.SquareToCoords(parsedFen.enpassant)
- : undefined;
- this.epSquares = [ epSq ];
- this.scanKingsRooks(fen);
- }
-
getPotentialPawnMoves([x,y])
{
let moves = super.getPotentialPawnMoves([x,y]);
getPotentialPawnMoves([x,y])
{
let moves = super.getPotentialPawnMoves([x,y]);
@@
-107,7
+97,7
@@
class LoserRules extends ChessRules
return [];
}
return [];
}
- // No variables update because no castling
+ // No variables update because no
royal king + no
castling
updateVariables(move) { }
unupdateVariables(move) { }
updateVariables(move) { }
unupdateVariables(move) { }