projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Attempt to not throw exception on server socket error
[vchess.git]
/
public
/
javascripts
/
variants
/
Checkered.js
diff --git
a/public/javascripts/variants/Checkered.js
b/public/javascripts/variants/Checkered.js
index
b702018
..
b9e7223
100644
(file)
--- a/
public/javascripts/variants/Checkered.js
+++ b/
public/javascripts/variants/Checkered.js
@@
-262,9
+262,11
@@
class CheckeredRules extends ChessRules
notation = startColumn + "x" + finalSquare + "=" + move.appear[0].p.toUpperCase();
}
else //no capture
notation = startColumn + "x" + finalSquare + "=" + move.appear[0].p.toUpperCase();
}
else //no capture
+ {
notation = finalSquare;
notation = finalSquare;
- if (move.appear.length > 0 && piece != move.appear[0].p) //promotion
- notation += "=" + move.appear[0].p.toUpperCase();
+ if (move.appear.length > 0 && piece != move.appear[0].p) //promotion
+ notation += "=" + move.appear[0].p.toUpperCase();
+ }
return notation;
}
return notation;
}