run tidy over html files; added include for gnu pages
[xboard.git] / whats_new / rules / Xiangqi.html
1 <!--#include virtual="/server/html5-header.html" -->
2   <title>Xiangqi</title>
3   <link rel="StyleSheet" href="./moves.css" type="text/css">
4   <script type="text/javascript" src="spartan.js">
5 </script>
6 <!--#include virtual="/server/banner.html" -->
7 <!--#set var="article_name" value="/server/standards/boilerplate" -->
8 <!--#include virtual="/server/gnun/initial-translations-list.html" -->
9
10   <h1>Xiangqi (Chinese Chess)</h1>
11
12   <p>Xiangqi is the World's number one Chess variant in terms of
13   number of players. Almost all players live in China, Taiwan or
14   Vietnam, though. It is a fast and aggressive game, often
15   described as a 'race to mate'. When it gets to an end-game it is
16   often a draw, because there are many pieces that cannot leave
17   their own board half, and thus can be used to defend but not to
18   attack or to trade for the opponent's defenders.</p>
19
20   <table cellpadding="20">
21     <tr>
22       <td><img src="Xiangqi.png"></td>
23
24       <td>
25         <h3>Initial setup</h3>
26
27         <p>e0, e9: King<br>
28         a0, a9, i0, i9: Rook<br>
29         b2, b7, h2, h7: Cannon<br>
30         b0, b9, h0, h9: Horse<br>
31         d0, d9, f0, f9: Advisor<br>
32         c0, c9, g0, g9: Elephant<br>
33         a3, c3, e3, g3, i3, a6, c6, e6, g6, i6: Pawns</p>
34       </td>
35     </tr>
36   </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">
43     <tr>
44       <td class="n" id="sq0x9" onmousedown="down_click(,)" onmouseup=
45       "up_click(,)"></td>
46
47       <td class="n" id="sq1x9"></td>
48
49       <td class="n" id="sq2x9"></td>
50
51       <td class="n" id="sq3x9"></td>
52
53       <td class="n" id="sq4x9"></td>
54
55       <td class="n" id="sq5x9"></td>
56
57       <td class="n" id="sq6x9"></td>
58
59       <td class="n" id="sq7x9"><img src="sym/BlackRook.png"></td>
60
61       <td class="n" id="sq8x9"></td>
62
63       <td class="n" id="sq9x9"></td>
64
65       <td class="h"><img src="sym/yellow.png"></td>
66
67       <td class="w" rowspan="2" valign="top">
68         <p>Sliding capture or non-capture,<br>
69         can be blocked on any square along the ray</p>
70       </td>
71     </tr>
72
73     <tr>
74       <td class="n" id="sq0x8"></td>
75
76       <td class="n" id="sq1x8"></td>
77
78       <td class="n" id="sq2x8"></td>
79
80       <td class="n" id="sq3x8"></td>
81
82       <td class="n" id="sq4x8"></td>
83
84       <td class="n" id="sq5x8"></td>
85
86       <td class="n" id="sq6x8"></td>
87
88       <td class="n" id="sq7x8"></td>
89
90       <td class="n" id="sq8x8"></td>
91
92       <td class="n" id="sq9x8"></td>
93     </tr>
94
95     <tr>
96       <td class="n" id="sq0x7"></td>
97
98       <td class="n" id="sq1x7"></td>
99
100       <td class="n" id="sq2x7"></td>
101
102       <td class="n" id="sq3x7"></td>
103
104       <td class="n" id="sq4x7"></td>
105
106       <td class="n" id="sq5x7"></td>
107
108       <td class="n" id="sq6x7"></td>
109
110       <td class="n" id="sq7x7"></td>
111
112       <td class="n" id="sq8x7"></td>
113
114       <td class="n" id="sq9x7"></td>
115
116       <td class="h"><img src="sym/green.png"></td>
117
118       <td class="w">Non-capture only</td>
119     </tr>
120
121     <tr>
122       <td class="n" id="sq0x6"></td>
123
124       <td class="n" id="sq1x6"></td>
125
126       <td class="n" id="sq2x6"></td>
127
128       <td class="n" id="sq3x6"></td>
129
130       <td class="n" id="sq4x6"></td>
131
132       <td class="n" id="sq5x6"></td>
133
134       <td class="n" id="sq6x6"></td>
135
136       <td class="n" id="sq7x6"><img src="sym/BlackKnight.png"></td>
137
138       <td class="n" id="sq8x6"></td>
139
140       <td class="n" id="sq9x6"></td>
141
142       <td class="h"><img src="sym/red.png"></td>
143
144       <td class="w">Capture only</td>
145     </tr>
146
147     <tr>
148       <td class="n" id="sq0x5"></td>
149
150       <td class="n" id="sq1x5"></td>
151
152       <td class="n" id="sq2x5" onmousedown="down_click(2,5)"
153       onmouseup="up_click()"><img src="sym/WhitePawn.png"></td>
154
155       <td class="n" id="sq3x5"></td>
156
157       <td class="n" id="sq4x5" onmousedown="down_click(-4,5)"
158       onmouseup="up_click()"><img src="sym/WhiteAdvisor.png"></td>
159
160       <td class="n" id="sq5x5" onmousedown="down_click(5,-5)"
161       onmouseup="up_click()"><img src="sym/WhiteElephant.png"></td>
162
163       <td class="n" id="sq6x5" onmousedown="down_click(6,-5)"
164       onmouseup="up_click()"><img src="sym/WhiteGold.png"></td>
165
166       <td class="n" id="sq7x5"></td>
167
168       <td class="n" id="sq8x5"></td>
169
170       <td class="n" id="sq9x5"></td>
171
172       <td class="h"><img src="sym/open.png"></td>
173
174       <td class="w" rowspan="2" valign="top">Unreachable square
175       where move to other square can be blocked</td>
176     </tr>
177
178     <tr>
179       <td class="n" id="sq0x4"></td>
180
181       <td class="n" id="sq1x4"></td>
182
183       <td class="n" id="sq2x4"></td>
184
185       <td class="n" id="sq3x4" onmousedown="down_click(3,0)"
186       onmouseup="up_click()"></td>
187
188       <td class="n" id="sq4x4" onmousedown="down_click(4,0)"
189       onmouseup="up_click()"></td>
190
191       <td class="n" id="sq5x4" onmousedown="down_click(5,0)"
192       onmouseup="up_click()"></td>
193
194       <td class="n" id="sq6x4"></td>
195
196       <td class="n" id="sq7x4" onmousedown="down_click(7,4)"
197       onmouseup="up_click()"></td>
198
199       <td class="n" id="sq8x4"></td>
200
201       <td class="n" id="sq9x4"></td>
202     </tr>
203
204     <tr>
205       <td class="n" id="sq0x3"></td>
206
207       <td class="n" id="sq1x3"></td>
208
209       <td class="n" id="sq2x3"></td>
210
211       <td class="n" id="sq3x3" onmousedown="down_click(3,3)"
212       onmouseup="up_click()"><img src="sym/WhiteRook.png"></td>
213
214       <td class="n" id="sq4x3" onmousedown="down_click(-4,3)"
215       onmouseup="up_click()"><img src="sym/WhiteKnight.png"></td>
216
217       <td class="n" id="sq5x3"></td>
218
219       <td class="n" id="sq6x3"></td>
220
221       <td class="n" id="sq7x3"></td>
222
223       <td class="n" id="sq8x3"></td>
224
225       <td class="n" id="sq9x3"></td>
226     </tr>
227
228     <tr>
229       <td class="n" id="sq0x2"></td>
230
231       <td class="n" id="sq1x2"><img src="sym/BlackRook.png"></td>
232
233       <td class="n" id="sq2x2" onmousedown="down_click(2,2)"
234       onmouseup="up_click()"><img src="sym/WhitePawn.png"></td>
235
236       <td class="n" id="sq3x2"></td>
237
238       <td class="n" id="sq4x2"></td>
239
240       <td class="n" id="sq5x2"></td>
241
242       <td class="n" id="sq6x2"></td>
243
244       <td class="n" id="sq7x2" onmousedown="down_click(7,2)"
245       onmouseup="up_click()"><img src="sym/WhiteCanon.png"></td>
246
247       <td class="n" id="sq8x2"></td>
248
249       <td class="n" id="sq9x2"></td>
250     </tr>
251
252     <tr>
253       <td class="n" id="sq0x1"></td>
254
255       <td class="n" id="sq1x1"></td>
256
257       <td class="n" id="sq2x1"></td>
258
259       <td class="n" id="sq3x1"></td>
260
261       <td class="n" id="sq4x1"></td>
262
263       <td class="n" id="sq5x1"></td>
264
265       <td class="n" id="sq6x1"></td>
266
267       <td class="n" id="sq7x1"></td>
268
269       <td class="n" id="sq8x1"></td>
270
271       <td class="n" id="sq9x1"></td>
272     </tr>
273
274     <tr>
275       <td class="n" id="sq0x0"></td>
276
277       <td class="n" id="sq1x0"></td>
278
279       <td class="n" id="sq2x0"></td>
280
281       <td class="n" id="sq3x0"></td>
282
283       <td class="n" id="sq4x0"></td>
284
285       <td class="n" id="sq5x0"></td>
286
287       <td class="n" id="sq6x0"></td>
288
289       <td class="n" id="sq7x0"></td>
290
291       <td class="n" id="sq8x0"></td>
292
293       <td class="n" id="sq9x0"></td>
294     </tr>
295   </table>
296
297   <p id="piece" height="20">:<br>
298   :<br>
299   :<br>
300   :</p>
301
302   <table cellpadding="5" border="1">
303     <tr>
304       <td>Piece</td>
305
306       <td>ID</td>
307
308       <td>value</td>
309
310       <td>Moves (<a href="Betza.html">Betza notation</a>)</td>
311
312       <td>Remarks</td>
313     </tr>
314
315     <tr>
316       <td>King</td>
317
318       <td>K</td>
319
320       <td>-</td>
321
322       <td>W</td>
323
324       <td>Cannot leave its Palace</td>
325     </tr>
326
327     <tr>
328       <td>Rook</td>
329
330       <td>R</td>
331
332       <td>10</td>
333
334       <td>R</td>
335
336       <td></td>
337     </tr>
338
339     <tr>
340       <td>Cannon</td>
341
342       <td>C</td>
343
344       <td>4-5</td>
345
346       <td>pR</td>
347
348       <td>Must jump 1 piece to capture</td>
349     </tr>
350
351     <tr>
352       <td>Horse</td>
353
354       <td>H</td>
355
356       <td>5-4</td>
357
358       <td>n[WF]</td>
359
360       <td>Cannot jump</td>
361     </tr>
362
363     <tr>
364       <td>Adviser</td>
365
366       <td>A</td>
367
368       <td>2</td>
369
370       <td>F</td>
371
372       <td></td>
373     </tr>
374
375     <tr>
376       <td>Elephant</td>
377
378       <td>E</td>
379
380       <td>2</td>
381
382       <td>nA</td>
383
384       <td>Cannot move onto opponent's board half</td>
385     </tr>
386
387     <tr>
388       <td>Pawn</td>
389
390       <td>P</td>
391
392       <td>1</td>
393
394       <td>fW</td>
395
396       <td>Acquires sideway moves (fWsW) on opponent's board
397       half</td>
398     </tr>
399   </table>
400
401   <h3>Pawn peculiarities</h3>
402
403   <ul>
404     <li>Pawns capture and move straight ahead.</li>
405
406     <li>When they reach the opponent's board half ('cross the
407     River'), they can also move and capture sideways.</li>
408
409     <li>There is no real promotion; when Pawns reach last rank they
410     are stuck there.</li>
411   </ul>
412
413   <h3>General rules</h3>
414
415   <ul>
416     <li>It is not allowed to expose your King to check.</li>
417
418     <li>Kings are not allowed to face each other, i.e. be on the
419     same file with nothing in between.</li>
420
421     <li>The game is won by checkmating the opponent's King.</li>
422
423     <li>Stalemate (no legal moves, but not in check) is a los for
424     the stalemated side.</li>
425
426     <li>Perpetual checking is forbidden, and the side that checks
427     is ruled to lose on the 3rd repeat.</li>
428
429     <li>When both sides are perpetually checking each other, the
430     game is ruled a draw, however.</li>
431
432     <li>It is also forbidden to perpetually harass the same piece
433     other than King (see below).</li>
434
435     <li>But when both sides do it, the game is again ruled a
436     draw.</li>
437   </ul>
438
439   <h3>Differences with FIDE</h3>
440
441   <p>The board is sub-divided into zones, and some pieces are not
442   allowed to cross some zone boundaries. Pieces move in general
443   different than their FIDE counterpart. Only the Rook moves truly
444   the same.</p>
445
446   <h3>Perpetual Chasing</h3>
447
448   <p>It is forbidden to perpetually harass the same piece, and when
449   a repeat loop (after 3 repeats) has one side violating this rule,
450   that side will forfeit the game. This is only invoked if there
451   wasn't any perpetual checking in the loop as well. Exact rules
452   for this are quite complex. Basically, when a repeat loop creates
453   a <i>new</i> attack on the same <i>unprotected</i> piece on
454   <i>every</i> move, the move sequence will be considered a
455   perpetual chase. The chasing side then is ruled to lose, but if
456   both sides are chasing, it is a draw. A Rook counts as
457   unprotected against attacks of C or H. On the other hand, being
458   able to capture your attacker (as when equal pieces attack each
459   other) counts as (pre-emptive) protection. Attacks on a Pawn that
460   is still on its own board half, or attacks by a King are never
461   considered chases.</p>
462
463   <p>Only legal moves should be taken into account; i.e. pinned
464   pieces are not considered attackers or protectors. An attack by
465   the same piece is not considered a new one just because the
466   attacking piece moved to another location, e.g. when a Rook moves
467   along the ray of the attack. Note that the above rules do not
468   take into account whether the attacking or protecting captures
469   are good or non-sensical, or if pieces are <i>sufficiently</i>
470   protected against multiple attacks. Even if recapturing would get
471   you mated in one, the piece would still count as protected! Also
472   note that is perfectly allowed to alternately chase different
473   pieces. Even if one of the pieces is a King.</p>
474
475   <h3>Strategy issues</h3>
476
477   <p>Any piece except a Pawn on the last rank can force Checkmate
478   against a bare King.</p>
479 </div><!-- for id="content", starts in the include above -->
480 <!--#include virtual="/server/footer.html" -->
481 </body>
482 </html>