Some code cleaning + clarifying (TODO: work on variables names)
[vchess.git] / views / rules / Magnetic.pug
CommitLineData
7f0711a8 1p.boxed
92342261
BA
2 | Each piece has a charge generating a magnetic field,
3 | attracting enemy pieces while repelling others.
7f0711a8
BA
4
5h3 Specifications
6
7ul
8 li Chessboard: standard.
9 li Material: standard.
10 li Non-capturing moves: standard + magnetic.
43c0f1d8 11 li Special moves: no en-passant + magnetic.
7f0711a8
BA
12 li Captures: standard + magnetic.
13 li End of game: capture the king.
14
15h3 Basics
16
17p
92342261
BA
18 | Every piece has a charge generating a magnetic field, except the two kings
19 | which have a neutral charge.
20 | Pieces of the same color have let's say a positive charge,
21 | while the others have a negative charge.
43c0f1d8 22 | So, after each move some pieces are attracted while others are repelled.
7f0711a8
BA
23
24figure.diagram-container
25 .diagram
43c0f1d8
BA
26 | fen:3b4/8/3K4/q1R2rP1/3Q4/8/3b4/8:
27 figcaption Before white move Qd5
28 .diagram
29 | fen:3b4/8/3K4/qR1Qr1P1/3b4/8/8/8:
30 figcaption After white move Qd5
7f0711a8
BA
31
32h3 End of the game
33
43c0f1d8
BA
34p Win by capturing opponent's king. There is no notion of check or stalemate here.
35
36p Note: In castling, the changes are made by the rook movement.
7f0711a8
BA
37
38h3 Credits
39
40p
41 a(href="https://www.chessvariants.com/other.dir/magnetic.html") Magnetic chess
42 | on chessvariants.com.