f2e77cd7af2849d31ca29ba6de360e2642a6079c
[xboard.git] / whats_new / rules / Xiangqi.html
1 <html>
2 <header>
3 <title>Xiangqi</title>
4 <link rel=StyleSheet href="./moves.css" type="text/css">
5 <script type="text/javascript" src="spartan.js"></script>
6 </header>
7 <body>
8 <h1>Xiangqi (Chinese Chess)</h1>
9 <p>
10 Xiangqi is the World's number one Chess variant in terms of number of players.
11 Almost all players live in China, Taiwan or Vietnam, though.
12 It is a fast and aggressive game, often described as a 'race to mate'.
13 When it gets to an end-game it is often a draw,
14 because there are many pieces that cannot leave their own board half,
15 and thus can be used to defend but not to attack or to trade for the opponent's defenders.
16 </p>
17 <table cellpadding="20"><tr><td>
18 <img src="Xiangqi.png">
19 </td><td>
20 <h3>Initial setup</h3>
21 <p>
22 e0, e9: King
23 <br>
24 a0, a9, i0, i9: Rook
25 <br>
26 b2, b7, h2, h7: Cannon
27 <br>
28 b0, b9, h0, h9: Horse
29 <br>
30 d0, d9, f0, f9: Advisor
31 <br>
32 c0, c9, g0, g9: Elephant
33 <br>
34 a3, c3, e3, g3, i3, a6, c6, e6, g6, i6: Pawns
35 </p>
36 </td></tr></table>
37
38 <h3>Moves at a Glance</h3>
39
40 <p>Click on a white piece below to see its moves</p>
41
42 <table class="board"><tr><td class="n" id="0x9" onmouseDown="down_click(,)" onmouseUp="up_click(,)">
43
44      </td><td class="n" id="1x9">
45
46      </td><td class="n" id="2x9">
47
48      </td><td class="n" id="3x9">
49
50      </td><td class="n" id="4x9">
51
52      </td><td class="n" id="5x9">
53
54      </td><td class="n" id="6x9">
55
56      </td><td class="n" id="7x9">
57 <img src="sym/BlackRook.png">
58      </td><td class="n" id="8x9">
59
60      </td><td class="n" id="9x9">
61
62      </td><td class="h">
63 <img src="sym/yellow.png">
64      </td><td class="w" rowspan="2" valign="top">
65 <p>Sliding capture or non-capture,<br>can be blocked on any square along the ray</p>
66 </td></tr><tr><td class="n" id="0x8">
67
68      </td><td class="n" id="1x8">
69
70      </td><td class="n" id="2x8">
71
72      </td><td class="n" id="3x8">
73
74      </td><td class="n" id="4x8">
75
76      </td><td class="n" id="5x8">
77
78      </td><td class="n" id="6x8">
79
80      </td><td class="n" id="7x8">
81
82      </td><td class="n" id="8x8">
83
84      </td><td class="n" id="9x8">
85
86 </td></tr><tr><td class="n" id="0x7">
87
88      </td><td class="n" id="1x7">
89
90      </td><td class="n" id="2x7">
91
92      </td><td class="n" id="3x7">
93
94      </td><td class="n" id="4x7">
95
96      </td><td class="n" id="5x7">
97
98      </td><td class="n" id="6x7">
99
100      </td><td class="n" id="7x7">
101
102      </td><td class="n" id="8x7">
103
104      </td><td class="n" id="9x7">
105
106      </td><td class="h">
107 <img src="sym/green.png">
108      </td><td class="w">
109 Non-capture only
110 </td></tr><tr><td class="n" id="0x6">
111
112      </td><td class="n" id="1x6">
113
114      </td><td class="n" id="2x6">
115
116      </td><td class="n" id="3x6">
117
118      </td><td class="n" id="4x6">
119
120      </td><td class="n" id="5x6">
121
122      </td><td class="n" id="6x6">
123
124      </td><td class="n" id="7x6">
125 <img src="sym/BlackKnight.png">
126      </td><td class="n" id="8x6">
127
128      </td><td class="n" id="9x6">
129
130      </td><td class="h">
131 <img src="sym/red.png">
132      </td><td class="w">
133 Capture only
134 </td></tr><tr><td class="n" id="0x5">
135
136      </td><td class="n" id="1x5">
137
138      </td><td class="n" id="2x5" onmouseDown="down_click(2,5)" onmouseUp="up_click()">
139 <img src="sym/WhitePawn.png">
140      </td><td class="n" id="3x5">
141
142      </td><td class="n" id="4x5" onmouseDown="down_click(-4,5)" onmouseUp="up_click()">
143 <img src="sym/WhiteAdvisor.png">
144      </td><td class="n" id="5x5" onmouseDown="down_click(5,-5)" onmouseUp="up_click()">
145 <img src="sym/WhiteElephant.png">
146      </td><td class="n" id="6x5" onmouseDown="down_click(6,-5)" onmouseUp="up_click()">
147 <img src="sym/WhiteGold.png">
148      </td><td class="n" id="7x5">
149
150      </td><td class="n" id="8x5">
151
152      </td><td class="n" id="9x5">
153
154      </td><td class="h">
155 <img src="sym/open.png">
156      </td><td class="w" rowspan="2" valign="top">
157 Unreachable square where move to other square can be blocked
158 </td></tr><tr><td class="n" id="0x4">
159
160      </td><td class="n" id="1x4">
161
162      </td><td class="n" id="2x4">
163
164      </td><td class="n" id="3x4" onmouseDown="down_click(3,0)" onmouseUp="up_click()">
165
166      </td><td class="n" id="4x4" onmouseDown="down_click(4,0)" onmouseUp="up_click()">
167
168      </td><td class="n" id="5x4" onmouseDown="down_click(5,0)" onmouseUp="up_click()">
169
170      </td><td class="n" id="6x4">
171
172      </td><td class="n" id="7x4" onmouseDown="down_click(7,4)" onmouseUp="up_click()">
173
174      </td><td class="n" id="8x4">
175
176      </td><td class="n" id="9x4">
177
178 </td></tr><tr><td class="n" id="0x3">
179
180      </td><td class="n" id="1x3">
181
182      </td><td class="n" id="2x3">
183
184      </td><td class="n" id="3x3" onmouseDown="down_click(3,3)" onmouseUp="up_click()">
185 <img src="sym/WhiteRook.png">
186      </td><td class="n" id="4x3" onmouseDown="down_click(-4,3)" onmouseUp="up_click()">
187 <img src="sym/WhiteKnight.png">
188      </td><td class="n" id="5x3">
189
190      </td><td class="n" id="6x3">
191
192      </td><td class="n" id="7x3">
193
194      </td><td class="n" id="8x3">
195
196      </td><td class="n" id="9x3">
197
198 </td></tr><tr><td class="n" id="0x2">
199
200      </td><td class="n" id="1x2">
201 <img src="sym/BlackRook.png">
202      </td><td class="n" id="2x2" onmouseDown="down_click(2,2)" onmouseUp="up_click()">
203 <img src="sym/WhitePawn.png">
204      </td><td class="n" id="3x2">
205
206      </td><td class="n" id="4x2">
207
208      </td><td class="n" id="5x2">
209
210      </td><td class="n" id="6x2">
211
212      </td><td class="n" id="7x2" onmouseDown="down_click(7,2)" onmouseUp="up_click()">
213 <img src="sym/WhiteCanon.png">
214      </td><td class="n" id="8x2">
215
216      </td><td class="n" id="9x2">
217
218 </td></tr><tr><td class="n" id="0x1">
219
220      </td><td class="n" id="1x1">
221
222      </td><td class="n" id="2x1">
223
224      </td><td class="n" id="3x1">
225
226      </td><td class="n" id="4x1">
227
228      </td><td class="n" id="5x1">
229
230      </td><td class="n" id="6x1">
231
232      </td><td class="n" id="7x1">
233
234      </td><td class="n" id="8x1">
235
236      </td><td class="n" id="9x1">
237
238 </td></tr><tr><td class="n" id="0x0">
239
240      </td><td class="n" id="1x0">
241
242      </td><td class="n" id="2x0">
243
244      </td><td class="n" id="3x0">
245
246      </td><td class="n" id="4x0">
247
248      </td><td class="n" id="5x0">
249
250      </td><td class="n" id="6x0">
251
252      </td><td class="n" id="7x0">
253
254      </td><td class="n" id="8x0">
255
256      </td><td class="n" id="9x0">
257
258 </td></tr></table>
259
260 <p id="piece" height="20">:<br>:<br>:<br>:</p>
261
262 <table cellpadding="5" border="1"><tr><td>
263 Piece
264      </td><td>
265 ID
266      </td><td>
267 value
268      </td><td>
269 Moves (<a href="Betza.html">Betza notation</a>)
270      </td><td>
271 Remarks
272 </td></tr><tr><td>
273 King
274      </td><td>
275 K
276      </td><td>
277 -
278      </td><td>
279 W
280      </td><td>
281 Cannot leave its Palace
282 </td></tr><tr><td>
283 Rook
284      </td><td>
285 R
286      </td><td>
287 10
288      </td><td>
289 R
290      </td><td>
291
292 </td></tr><tr><td>
293 Cannon
294      </td><td>
295 C
296      </td><td>
297 4-5
298      </td><td>
299 pR
300      </td><td>
301 Must jump 1 piece to capture
302 </td></tr><tr><td>
303 Horse
304      </td><td>
305 H
306      </td><td>
307 5-4
308      </td><td>
309 n[WF]
310      </td><td>
311 Cannot jump
312 </td></tr><tr><td>
313 Adviser
314      </td><td>
315 A
316      </td><td>
317 2
318      </td><td>
319 F
320      </td><td>
321
322 </td></tr><tr><td>
323 Elephant
324      </td><td>
325 E
326      </td><td>
327 2
328      </td><td>
329 nA
330      </td><td>
331 Cannot move onto opponent's board half
332 </td></tr><tr><td>
333 Pawn
334      </td><td>
335 P
336      </td><td>
337 1
338      </td><td>
339 fW
340      </td><td>
341 Acquires sideway moves (fWsW) on opponent's board half
342 </td></tr></table>
343 <h3>Pawn peculiarities</h3>
344 <ul>
345 <li>Pawns capture and move straight ahead.</li>
346 <li>When they reach the opponent's board half ('cross the River'), they can also move and capture sideways.</li>
347 <li>There is no real promotion; when Pawns reach last rank they are stuck there.</li>
348 </ul>
349 <h3>General rules</h3>
350 <ul>
351 <li>It is not allowed to expose your King to check.</li>
352 <li>Kings are not allowed to face each other, i.e. be on the same file with nothing in between.</li>
353 <li>The game is won by checkmating the opponent's King.</li>
354 <li>Stalemate (no legal moves, but not in check) is a los for the stalemated side.</li>
355 <li>Perpetual checking is forbidden, and the side that checks is ruled to lose on the 3rd repeat.</li>
356 <li>When both sides are perpetually checking each other, the game is ruled a draw, however.</li>
357 <li>It is also forbidden to perpetually harass the same piece other than King (see below).</li>
358 <li>But when both sides do it, the game is again ruled a draw.</li>
359 </ul>
360 <h3>Differences with FIDE</h3>
361 <p>
362 The board is sub-divided into zones, and some pieces are not allowed to cross some zone boundaries.
363 Pieces move in general different than their FIDE counterpart. Only the Rook moves truly the same.
364 </p>
365 <h3>Perpetual Chasing</h3>
366 <p>
367 It is forbidden to perpetually harass the same piece,
368 and when a repeat loop (after 3 repeats) has one side violating this rule, that side will forfeit the game.
369 This is only invoked if there wasn't any perpetual checking in the loop as well.
370 Exact rules for this are quite complex.
371 Basically, when a repeat loop creates a <i>new</i> attack on the same <i>unprotected</i> piece on <i>every</i> move,
372 the move sequence will be considered a perpetual chase.
373 The chasing side then is ruled to lose, but if both sides are chasing, it is a draw.
374 A Rook counts as unprotected against attacks of C or H.
375 On the other hand, being able to capture your attacker (as when equal pieces attack each other) counts as (pre-emptive) protection.
376 Attacks on a Pawn that is still on its own board half, or attacks by a King are never considered chases.
377 </p>
378 <p>
379 Only legal moves should be taken into account; i.e. pinned pieces are not considered attackers or protectors.
380 An attack by the same piece is not considered a new one just because the attacking piece moved to another location,
381 e.g. when a Rook moves along the ray of the attack.
382 Note that the above rules do not take into account whether the attacking or protecting captures are good or non-sensical,
383 or if pieces are <i>sufficiently</i> protected against multiple attacks.
384 Even if recapturing would get you mated in one, the piece would still count as protected!
385 Also note that is perfectly allowed to alternately chase different pieces.
386 Even if one of the pieces is a King.
387 </p>
388 <h3>Strategy issues</h3>
389 <p>
390 Any piece except a Pawn on the last rank can force Checkmate against a bare King.
391 </p>
392 <p>
393 </p>
394 <p>
395 </p>
396 <p>
397 </p>
398 <p>
399 </p>
400 <p>
401 </p>
402 </body>
403 </html>