projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add TODO for pawns promotions in Magnetic + slightly improve rules description
[vchess.git]
/
public
/
javascripts
/
variants
/
Magnetic.js
diff --git
a/public/javascripts/variants/Magnetic.js
b/public/javascripts/variants/Magnetic.js
index
2d576e1
..
4151f9a
100644
(file)
--- a/
public/javascripts/variants/Magnetic.js
+++ b/
public/javascripts/variants/Magnetic.js
@@
-90,6
+90,7
@@
class MagneticRules extends ChessRules
this.undo(standardMove);
}
this.undo(standardMove);
}
+ // TODO: when pawn is pushed to 8th rank, apply promotions (similar change as in Checkered)
getBasicMove([sx,sy], [ex,ey], tr)
{
var mv = new Move({
getBasicMove([sx,sy], [ex,ey], tr)
{
var mv = new Move({