Some code cleaning + clarifying (TODO: work on variables names)
[vchess.git] / views / rules / Switching.pug
1 p.boxed
2 | In addition to standard moves, a piece can be exchanged
3 | with an adjacent friendly unit.
4
5 h3 Specifications
6
7 ul
8 li Chessboard: standard.
9 li Material: standard.
10 li Non-capturing moves: standard + switch.
11 li Special moves: standard.
12 li Captures: standard.
13 li End of game: standard.
14
15 h3 Basics
16
17 p
18 | Instead of a normal move, a piece may be exchanged with an adjacent friendly one.
19 | Switching can move pawns until rank 1 or final rank. In the first case a 2-squares,
20 | jump is possible, and in the second a promotion occurs.
21 | Switching must involves two different units.
22 | Switching while the king is under check is not allowed.
23
24 p.
25 Note: if the king and rook are on two adjacent squares, castling and switching
26 from the king are triggered in the same way. Castling takes priority:
27 if you wanna switch, use the rook.
28
29 h3 Credits
30
31 p
32 a(href="https://www.chessvariants.com/diffmove.dir/switching.html") Switching chess
33 | on chessvariants.com.