run tidy over html files; added include for gnu pages
[xboard.git] / whats_new / rules / Knightmate.html
1 <!--#include virtual="/server/html5-header.html" -->
2   <title>Knightmate</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>Knightmate</h1>
11
12   <table cellpadding="20">
13     <tr>
14       <td><img src="Knightmate.png"></td>
15
16       <td>
17         <h3>Initial setup</h3>
18
19         <p>e1, e8: Royal Knight<br>
20         d1, d8: Queen<br>
21         a1, a8, h1, h8: Rook<br>
22         c1, c8, f1, f8: Bishop<br>
23         b1, b8, g1, g8: Commoners<br>
24         a2-h2, a7-h7: Pawns</p>
25       </td>
26     </tr>
27   </table>
28
29   <h3>Moves at a Glance</h3>
30
31   <p>Click on a piece below to see its moves</p>
32
33   <table class="board">
34     <tr>
35       <td class="h" id="sq0x9"></td>
36
37       <td class="n" id="sq1x9" onmousedown="down_click(3,-9)"
38       onmouseup="up_click()"><img src="sym/BlackRook.png"></td>
39
40       <td class="n" id="sq2x9"></td>
41
42       <td class="n" id="sq3x9"></td>
43
44       <td class="n" id="sq4x9"></td>
45
46       <td class="n" id="sq5x9" onmousedown="down_click(5,9)"
47       onmouseup="up_click()"><img src="sym/BlackUnicorn.png"></td>
48
49       <td class="n" id="sq6x9"></td>
50
51       <td class="n" id="sq7x9"></td>
52
53       <td class="n" id="sq8x9" onmousedown="down_click(7,9)"
54       onmouseup="up_click()"><img src="sym/BlackRook.png"></td>
55
56       <td class="h" id="sq9x9"></td>
57
58       <td class="h"><img src="sym/yellow.png"></td>
59
60       <td class="w" rowspan="2" valign="top">
61         <p>Sliding capture or non-capture,<br>
62         can be blocked on any square along the ray</p>
63       </td>
64     </tr>
65
66     <tr>
67       <td class="h" id="sq0x8"></td>
68
69       <td class="n" id="sq1x8"></td>
70
71       <td class="n" id="sq2x8" onmousedown="down_click(2,0)"
72       onmouseup="up_click()"></td>
73
74       <td class="n" id="sq3x8"></td>
75
76       <td class="n" id="sq4x8"></td>
77
78       <td class="n" id="sq5x8"></td>
79
80       <td class="n" id="sq6x8"></td>
81
82       <td class="n" id="sq7x8"></td>
83
84       <td class="n" id="sq8x8"></td>
85
86       <td class="h" id="sq9x8"></td>
87     </tr>
88
89     <tr>
90       <td class="h" id="sq0x7"></td>
91
92       <td class="n" id="sq1x7"></td>
93
94       <td class="n" id="sq2x7"></td>
95
96       <td class="n" id="sq3x7"></td>
97
98       <td class="n" id="sq4x7"></td>
99
100       <td class="n" id="sq5x7"></td>
101
102       <td class="n" id="sq6x7"></td>
103
104       <td class="n" id="sq7x7"></td>
105
106       <td class="n" id="sq8x7"></td>
107
108       <td class="h" id="sq9x7"></td>
109
110       <td class="h"><img src="sym/orange.png"></td>
111
112       <td class="w">Unblockable leap (capture or non-capture)</td>
113     </tr>
114
115     <tr>
116       <td class="h" id="sq0x6"></td>
117
118       <td class="n" id="sq1x6"></td>
119
120       <td class="n" id="sq2x6" onmousedown="down_click(2,0)"
121       onmouseup="up_click()"></td>
122
123       <td class="n" id="sq3x6" onmousedown="down_click(3,0)"
124       onmouseup="up_click()"></td>
125
126       <td class="n" id="sq4x6" onmousedown="down_click(4,0)"
127       onmouseup="up_click()"></td>
128
129       <td class="n" id="sq5x6" onmousedown="down_click(5,0)"
130       onmouseup="up_click()"></td>
131
132       <td class="n" id="sq6x6" onmousedown="down_click(6,0)"
133       onmouseup="up_click()"></td>
134
135       <td class="n" id="sq7x6" onmousedown="down_click(7,0)"
136       onmouseup="up_click()"></td>
137
138       <td class="n" id="sq8x6"></td>
139
140       <td class="h" id="sq9x6"></td>
141
142       <td class="h"><img src="sym/green.png"></td>
143
144       <td class="w">Non-capture only</td>
145     </tr>
146
147     <tr>
148       <td class="h" id="sq0x5"></td>
149
150       <td class="n" id="sq1x5"></td>
151
152       <td class="n" id="sq2x5"></td>
153
154       <td class="n" id="sq3x5"></td>
155
156       <td class="n" id="sq4x5"></td>
157
158       <td class="n" id="sq5x5"></td>
159
160       <td class="n" id="sq6x5"></td>
161
162       <td class="n" id="sq7x5"></td>
163
164       <td class="n" id="sq8x5"></td>
165
166       <td class="h" id="sq9x5"></td>
167
168       <td class="h"><img src="sym/red.png"></td>
169
170       <td class="w">Capture only</td>
171     </tr>
172
173     <tr>
174       <td class="h" id="sq0x4"></td>
175
176       <td class="n" id="sq1x4"></td>
177
178       <td class="n" id="sq2x4"></td>
179
180       <td class="n" id="sq3x4"></td>
181
182       <td class="n" id="sq4x4"></td>
183
184       <td class="n" id="sq5x4"></td>
185
186       <td class="n" id="sq6x4"></td>
187
188       <td class="n" id="sq7x4"></td>
189
190       <td class="n" id="sq8x4"></td>
191
192       <td class="h" id="sq9x4"></td>
193     </tr>
194
195     <tr>
196       <td class="h" id="sq0x3"></td>
197
198       <td class="n" id="sq1x3" onmousedown="down_click(1,3)"
199       onmouseup="up_click()"><img src="sym/BlackPawn.png"></td>
200
201       <td class="n" id="sq2x3" onmousedown="down_click(2,3)"
202       onmouseup="up_click()"><img src="sym/WhitePawn.png"></td>
203
204       <td class="n" id="sq3x3" onmousedown="down_click(3,3)"
205       onmouseup="up_click()"><img src="sym/WhiteRook.png"></td>
206
207       <td class="n" id="sq4x3" onmousedown="down_click(4,-3)"
208       onmouseup="up_click()"><img src="sym/WhiteUnicorn.png"></td>
209
210       <td class="n" id="sq5x3" onmousedown="down_click(5,3)"
211       onmouseup="up_click()"><img src="sym/WhiteQueen.png"></td>
212
213       <td class="n" id="sq6x3" onmousedown="down_click(6,3)"
214       onmouseup="up_click()"><img src="sym/WhiteBishop.png"></td>
215
216       <td class="n" id="sq7x3" onmousedown="down_click(7,-3)"
217       onmouseup="up_click()"><img src="sym/WhiteCommoner.png"></td>
218
219       <td class="n" id="sq8x3"></td>
220
221       <td class="h" id="sq9x3"></td>
222     </tr>
223
224     <tr>
225       <td class="h" id="sq0x2"></td>
226
227       <td class="n" id="sq1x2"></td>
228
229       <td class="n" id="sq2x2"></td>
230
231       <td class="n" id="sq3x2"></td>
232
233       <td class="n" id="sq4x2"></td>
234
235       <td class="n" id="sq5x2"></td>
236
237       <td class="n" id="sq6x2"></td>
238
239       <td class="n" id="sq7x2"></td>
240
241       <td class="n" id="sq8x2"></td>
242
243       <td class="h" id="sq9x2"></td>
244     </tr>
245
246     <tr>
247       <td class="h" id="sq0x1"></td>
248
249       <td class="n" id="sq1x1"></td>
250
251       <td class="n" id="sq2x1" onmousedown="down_click(-2,1)"
252       onmouseup="up_click()"><img src="sym/WhitePawn.png"></td>
253
254       <td class="n" id="sq3x1"></td>
255
256       <td class="n" id="sq4x1"></td>
257
258       <td class="n" id="sq5x1"></td>
259
260       <td class="n" id="sq6x1"></td>
261
262       <td class="n" id="sq7x1"></td>
263
264       <td class="n" id="sq8x1"></td>
265
266       <td class="h" id="sq9x1"></td>
267     </tr>
268
269     <tr>
270       <td class="h" id="sq0x0"></td>
271
272       <td class="n" id="sq1x0"></td>
273
274       <td class="n" id="sq2x0"></td>
275
276       <td class="n" id="sq3x0"></td>
277
278       <td class="n" id="sq4x0"></td>
279
280       <td class="n" id="sq5x0"></td>
281
282       <td class="n" id="sq6x0"></td>
283
284       <td class="n" id="sq7x0"></td>
285
286       <td class="n" id="sq8x0"></td>
287
288       <td class="h" id="sq9x0"></td>
289     </tr>
290   </table>
291
292   <p id="piece" height="20">:<br>
293   :<br>
294   :<br>
295   :</p>
296
297   <table cellpadding="5" border="1">
298     <tr>
299       <td>Piece</td>
300
301       <td>ID</td>
302
303       <td>value</td>
304
305       <td>Moves (<a href="Betza.html">Betza notation</a>)</td>
306
307       <td>Remarks</td>
308     </tr>
309
310     <tr>
311       <td>Royal Knight</td>
312
313       <td>K</td>
314
315       <td>-</td>
316
317       <td>N</td>
318
319       <td>Can castle with Rook, moving 2 steps towards it</td>
320     </tr>
321
322     <tr>
323       <td>Queen</td>
324
325       <td>Q</td>
326
327       <td>10</td>
328
329       <td>RB or Q</td>
330
331       <td></td>
332     </tr>
333
334     <tr>
335       <td>Rook</td>
336
337       <td>R</td>
338
339       <td>4.5</td>
340
341       <td>R</td>
342
343       <td></td>
344     </tr>
345
346     <tr>
347       <td>Bishop</td>
348
349       <td>B</td>
350
351       <td>3.25</td>
352
353       <td>B</td>
354
355       <td>Color-bound</td>
356     </tr>
357
358     <tr>
359       <td>Commoner</td>
360
361       <td>M</td>
362
363       <td>3</td>
364
365       <td>K</td>
366
367       <td></td>
368     </tr>
369
370     <tr>
371       <td>Pawn</td>
372
373       <td>P</td>
374
375       <td>1</td>
376
377       <td>mfWcfF</td>
378
379       <td>Promotes to Q, R, B, or M on reaching last rank</td>
380     </tr>
381   </table>
382
383   <h3>Pawn peculiarities</h3>
384
385   <ul>
386     <li>Pawns capture differently from how they move (straight
387     move, diagonal capture).</li>
388
389     <li>Pawns can move two squares straight ahead from their
390     initial position, provided they are not blocked.</li>
391
392     <li>On the move immediately after such a double push, they can
393     be captured en passant by another Pawn, as if they had only
394     moved 1 square ahead.</li>
395
396     <li>Pawns promote to another (non-royal) piece of choice when
397     they reach last rank.</li>
398   </ul>
399
400   <h3>Castling</h3>
401
402   <p>A Royal Knight that has not moved before can move two squares
403   in the direction of a Rook that has not moved before, in which
404   case that Rook is moved to the square on the other side next to
405   the Royal Knight. This is only allowed if all squares traveled
406   through by Royal Knight and Rook are empty (after their removal),
407   when the Royal Knight is not in check on the square it came from,
408   and would not be in check on any of the squares it skipped
409   over.</p>
410
411   <h3>General rules</h3>
412
413   <ul>
414     <li>It is not allowed to expose your Royal Knight to
415     check.</li>
416
417     <li>The game is won by checkmating the opponent's Royal
418     Knight.</li>
419
420     <li>Stalemate (no legal moves, but not in check) is a
421     draw.</li>
422   </ul>
423
424   <h3>Differences with FIDE</h3>
425
426   <p>The King moves as a Knight, the Knights move as a King.</p>
427
428   <h3>Strategy issues</h3>
429
430   <p>It is not possible to force checkmate on a bare King with just
431   a single <b>Rook</b>, Bishop or Commoner (in addition to your own
432   King). All pairs of pieces can force checkmate on a bare King,
433   however. A Queen can even do it without help of its Royal Knight,
434   and is thus extremely dangerous.</p>
435
436   <p>Bishops are confined to squares of a single color. Having
437   Bishops on both colors compensates this weakness, and is worth an
438   extra 0.5 on top of their added value.</p>
439 </div><!-- for id="content", starts in the include above -->
440 <!--#include virtual="/server/footer.html" -->
441 </body>
442 </html>