From: Benjamin Auder Date: Tue, 20 Nov 2018 22:47:13 +0000 (+0100) Subject: Add TODO for pawns promotions in Magnetic + slightly improve rules description X-Git-Url: https://git.auder.net/variants/Apocalypse/scripts/current/pieces/doc/config.php?a=commitdiff_plain;h=43c0f1d8ead5eb867a78ad00c0983d70e07fe4bb;p=vchess.git Add TODO for pawns promotions in Magnetic + slightly improve rules description --- diff --git a/public/javascripts/variants/Magnetic.js b/public/javascripts/variants/Magnetic.js index 2d576e1b..4151f9ad 100644 --- a/public/javascripts/variants/Magnetic.js +++ b/public/javascripts/variants/Magnetic.js @@ -90,6 +90,7 @@ class MagneticRules extends ChessRules 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({ diff --git a/views/rules/Magnetic.pug b/views/rules/Magnetic.pug index 6c8002f6..ac90eeb6 100644 --- a/views/rules/Magnetic.pug +++ b/views/rules/Magnetic.pug @@ -7,23 +7,30 @@ ul li Chessboard: standard. li Material: standard. li Non-capturing moves: standard + magnetic. - li Special moves: standard + magnetic. + li Special moves: no en-passant + magnetic. li Captures: standard + magnetic. li End of game: capture the king. h3 Basics p - | TODO: use diagram from chessvariants.com + | Every piece has a charge generating a magnetic field, except the two kings which have a neutral charge. + | Pieces of the same color have let's say a positive charge, while the others have a negative charge. + | So, after each move some pieces are attracted while others are repelled. figure.diagram-container .diagram - | fen:rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR: - figcaption TODO + | fen:3b4/8/3K4/q1R2rP1/3Q4/8/3b4/8: + figcaption Before white move Qd5 + .diagram + | fen:3b4/8/3K4/qR1Qr1P1/3b4/8/8/8: + figcaption After white move Qd5 h3 End of the game -p Win by capturing opponent's king. Thee is no notion of check or stalemate here. +p Win by capturing opponent's king. There is no notion of check or stalemate here. + +p Note: In castling, the changes are made by the rook movement. h3 Credits