Some code cleaning + clarifying (TODO: work on variables names)
[vchess.git] / views / rules / Switching.pug
CommitLineData
1221ac47 1p.boxed
92342261
BA
2 | In addition to standard moves, a piece can be exchanged
3 | with an adjacent friendly unit.
1221ac47
BA
4
5h3 Specifications
6
7ul
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
15h3 Basics
16
17p
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
24p.
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
29h3 Credits
30
31p
32 a(href="https://www.chessvariants.com/diffmove.dir/switching.html") Switching chess
33 | on chessvariants.com.