projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clarify long leaper movement in Ultima rules
[vchess.git]
/
public
/
javascripts
/
variants
/
Zen.js
diff --git
a/public/javascripts/variants/Zen.js
b/public/javascripts/variants/Zen.js
index
c1f4814
..
f57ab3c
100644
(file)
--- a/
public/javascripts/variants/Zen.js
+++ b/
public/javascripts/variants/Zen.js
@@
-194,15
+194,15
@@
class ZenRules extends ChessRules
}
// Translate initial square (because pieces may fly unusually in this variant!)
}
// Translate initial square (because pieces may fly unusually in this variant!)
-
le
t initialSquare =
+
cons
t initialSquare =
String.fromCharCode(97 + move.start.y) + (VariantRules.size[0]-move.start.x);
// Translate final square
String.fromCharCode(97 + move.start.y) + (VariantRules.size[0]-move.start.x);
// Translate final square
-
le
t finalSquare =
+
cons
t finalSquare =
String.fromCharCode(97 + move.end.y) + (VariantRules.size[0]-move.end.x);
let notation = "";
String.fromCharCode(97 + move.end.y) + (VariantRules.size[0]-move.end.x);
let notation = "";
-
le
t piece = this.getPiece(move.start.x, move.start.y);
+
cons
t piece = this.getPiece(move.start.x, move.start.y);
if (piece == VariantRules.PAWN)
{
// pawn move (TODO: enPassant indication)
if (piece == VariantRules.PAWN)
{
// pawn move (TODO: enPassant indication)