run tidy over html files; added include for gnu pages
[xboard.git] / whats_new / rules / Mini.html
1 <!--#include virtual="/server/html5-header.html" -->
2   <title>mini-Shogi</title>
3   <link rel="StyleSheet" href="./moves.css" type="text/css">
4   <script type="text/javascript" src="chu.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>mini-Shogi (Diamond Quest)</h1>
11
12   <table cellpadding="20">
13     <tr>
14       <td><img src="Mini.png"></td>
15
16       <td>
17         <h3>Initial setup</h3>
18
19         <p>a1, e5: King<br>
20         e1, a5: Rook<br>
21         d1, hb5: Bishop<br>
22         b1, d5: Gold General<br>
23         c1, c5: Silver General<br>
24         a2, e4: Pawn</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="n" id="sq0x9"></td>
36
37       <td class="n" id="sq1x9"></td>
38
39       <td class="n" id="sq2x9"></td>
40
41       <td class="n" id="sq3x9"></td>
42
43       <td class="n" id="sq4x9"></td>
44
45       <td class="n" id="sq5x9"></td>
46
47       <td class="n" id="sq6x9"></td>
48
49       <td class="n" id="sq7x9"></td>
50
51       <td class="n" id="sq8x9"></td>
52
53       <td class="n" id="sq9x9"></td>
54     </tr>
55
56     <tr>
57       <td class="n" id="sq0x8"></td>
58
59       <td class="n" id="sq1x8"></td>
60
61       <td class="n" id="sq2x8"></td>
62
63       <td class="n" id="sq3x8"></td>
64
65       <td class="n" id="sq4x8"></td>
66
67       <td class="n" id="sq5x8"></td>
68
69       <td class="n" id="sq6x8"></td>
70
71       <td class="n" id="sq7x8"></td>
72
73       <td class="n" id="sq8x8"></td>
74
75       <td class="n" id="sq9x8"></td>
76     </tr>
77
78     <tr>
79       <td class="n" id="sq0x7"></td>
80
81       <td class="n" id="sq1x7"></td>
82
83       <td class="n" id="sq2x7"></td>
84
85       <td class="n" id="sq3x7" onmousedown="down_click(3,7)"
86       onmouseup="up_click()"><img src="sym/WhiteGold.png"></td>
87
88       <td class="n" id="sq4x7" onmousedown="down_click(4,7)"
89       onmouseup="up_click()"><img src="sym/WhiteAdvisor.png"></td>
90
91       <td class="n" id="sq5x7"></td>
92
93       <td class="n" id="sq6x7"></td>
94
95       <td class="n" id="sq7x7"></td>
96
97       <td class="n" id="sq8x7"></td>
98
99       <td class="n" id="sq9x7"></td>
100     </tr>
101
102     <tr>
103       <td class="n" id="sq0x6"></td>
104
105       <td class="n" id="sq1x6"></td>
106
107       <td class="n" id="sq2x6"></td>
108
109       <td class="n" id="sq3x6"></td>
110
111       <td class="n" id="sq4x6"></td>
112
113       <td class="n" id="sq5x6"></td>
114
115       <td class="n" id="sq6x6" onmousedown="down_click(6,6)"
116       onmouseup="up_click()"><img src="sym/WhiteKing.png"></td>
117
118       <td class="n" id="sq7x6"></td>
119
120       <td class="n" id="sq8x6"></td>
121
122       <td class="n" id="sq9x6"></td>
123     </tr>
124
125     <tr>
126       <td class="n" id="sq0x5"></td>
127
128       <td class="n" id="sq1x5"></td>
129
130       <td class="n" id="sq2x5"></td>
131
132       <td class="n" id="sq3x5"></td>
133
134       <td class="n" id="sq4x5"></td>
135
136       <td class="n" id="sq5x5"></td>
137
138       <td class="n" id="sq6x5" onmousedown="down_click(6,5)"
139       onmouseup="up_click()"><img src=
140       "sym/WhiteCrownedRook.png"></td>
141
142       <td class="n" id="sq7x5" onmousedown="down_click(7,5)"
143       onmouseup="up_click()"><img src="sym/WhiteRook.png"></td>
144
145       <td class="n" id="sq8x5"></td>
146
147       <td class="n" id="sq9x5"></td>
148     </tr>
149
150     <tr>
151       <td class="n" id="sq0x4"></td>
152
153       <td class="n" id="sq1x4"></td>
154
155       <td class="n" id="sq2x4"></td>
156
157       <td class="n" id="sq3x4"></td>
158
159       <td class="n" id="sq4x4"></td>
160
161       <td class="n" id="sq5x4"></td>
162
163       <td class="n" id="sq6x4" onmousedown="down_click(6,4)"
164       onmouseup="up_click()"><img src=
165       "sym/WhiteCrownedBishop.png"></td>
166
167       <td class="n" id="sq7x4" onmousedown="down_click(7,4)"
168       onmouseup="up_click()"><img src="sym/WhiteBishop.png"></td>
169
170       <td class="n" id="sq8x4"></td>
171
172       <td class="n" id="sq9x4"></td>
173     </tr>
174
175     <tr>
176       <td class="n" id="sq0x3"></td>
177
178       <td class="n" id="sq1x3"></td>
179
180       <td class="n" id="sq2x3"></td>
181
182       <td class="n" id="sq3x3"></td>
183
184       <td class="n" id="sq4x3"></td>
185
186       <td class="n" id="sq5x3"></td>
187
188       <td class="n" id="sq6x3"></td>
189
190       <td class="n" id="sq7x3"></td>
191
192       <td class="n" id="sq8x3"></td>
193
194       <td class="n" id="sq9x3"></td>
195     </tr>
196
197     <tr>
198       <td class="n" id="sq0x2"></td>
199
200       <td class="n" id="sq1x2"></td>
201
202       <td class="n" id="sq2x2"></td>
203
204       <td class="n" id="sq3x2"></td>
205
206       <td class="n" id="sq4x2"></td>
207
208       <td class="n" id="sq5x2"></td>
209
210       <td class="n" id="sq6x2" onmousedown="down_click(6,2)"
211       onmouseup="up_click()"><img src="sym/WhitePawn.png"></td>
212
213       <td class="n" id="sq7x2"></td>
214
215       <td class="n" id="sq8x2"></td>
216
217       <td class="n" id="sq9x2"></td>
218     </tr>
219
220     <tr>
221       <td class="n" id="sq0x1"></td>
222
223       <td class="n" id="sq1x1"></td>
224
225       <td class="n" id="sq2x1"></td>
226
227       <td class="n" id="sq3x1"></td>
228
229       <td class="n" id="sq4x1"></td>
230
231       <td class="n" id="sq5x1"></td>
232
233       <td class="n" id="sq6x1"></td>
234
235       <td class="n" id="sq7x1"></td>
236
237       <td class="n" id="sq8x1"></td>
238
239       <td class="n" id="sq9x1"></td>
240     </tr>
241
242     <tr>
243       <td class="n" id="sq0x0"></td>
244
245       <td class="n" id="sq1x0"></td>
246
247       <td class="n" id="sq2x0"></td>
248
249       <td class="n" id="sq3x0"></td>
250
251       <td class="n" id="sq4x0"></td>
252
253       <td class="n" id="sq5x0"></td>
254
255       <td class="n" id="sq6x0"></td>
256
257       <td class="n" id="sq7x0"></td>
258
259       <td class="n" id="sq8x0"></td>
260
261       <td class="n" id="sq9x0"></td>
262     </tr>
263   </table>
264
265   <p id="piece" height="20">:<br>
266   :<br>
267   :<br>
268   :</p>
269
270   <table cellpadding="5" border="1">
271     <tr>
272       <td>Piece</td>
273
274       <td>ID</td>
275
276       <td>value</td>
277
278       <td>Moves (<a href="Betza.html">Betza notation</a>)</td>
279
280       <td>Remarks</td>
281     </tr>
282
283     <tr>
284       <td>King</td>
285
286       <td>K</td>
287
288       <td>-</td>
289
290       <td>WF</td>
291
292       <td></td>
293     </tr>
294
295     <tr>
296       <td>Rook</td>
297
298       <td>R</td>
299
300       <td>5</td>
301
302       <td>WW</td>
303
304       <td>Promotes tp Dragon</td>
305     </tr>
306
307     <tr>
308       <td>Bishop</td>
309
310       <td>B</td>
311
312       <td>4</td>
313
314       <td>FF</td>
315
316       <td>Promotes to Horse</td>
317     </tr>
318
319     <tr>
320       <td>Gold</td>
321
322       <td>G</td>
323
324       <td>4</td>
325
326       <td>WfF</td>
327
328       <td></td>
329     </tr>
330
331     <tr>
332       <td>Silver</td>
333
334       <td>S</td>
335
336       <td>3.5</td>
337
338       <td>FfW</td>
339
340       <td>promotes to Gold</td>
341     </tr>
342
343     <tr>
344       <td>Pawn</td>
345
346       <td>P</td>
347
348       <td>1</td>
349
350       <td>fW</td>
351
352       <td>promotes to Gold</td>
353     </tr>
354
355     <tr>
356       <td colspan="5">Promoted pieces (not initially present)</td>
357     </tr>
358
359     <tr>
360       <td>Dragon</td>
361
362       <td>D or +R</td>
363
364       <td>6</td>
365
366       <td>RF</td>
367
368       <td></td>
369     </tr>
370
371     <tr>
372       <td>Horse</td>
373
374       <td>H or +B</td>
375
376       <td>5</td>
377
378       <td>BW</td>
379
380       <td></td>
381     </tr>
382   </table>
383
384   <h3>Pawn peculiarities</h3>
385
386   <ul>
387     <li>Pawns move <b>and capture</b> straight ahead.</li>
388
389     <li>It is forbidded to have more than one Pawn in the same
390     file.</li>
391
392     <li>It is forbidden to checkmate the opponent with a Pawn
393     drop.</li>
394   </ul>
395
396   <h3>General rules</h3>
397
398   <ul>
399     <li>The game is won by capturing the opponent's King.</li>
400
401     <li>Pieces captured change color, and are kept in hand by the
402     side who captured them. In stead of a normal move, such pieces
403     can be dropped at any later time.</li>
404
405     <li>Pieces cannot be moved or dropped to a location where all
406     their moves would go off board.</li>
407
408     <li>Pieces optionally promote at the end of a move into, in or
409     out of the promotion zone.</li>
410
411     <li>The promotion zone consists of the last rank.</li>
412
413     <li>Pieces obtained by promotion revert to their original form
414     on capture.</li>
415
416     <li>Perpetual checking is forbidden, and would be ruled a loss
417     on the 4-fold repeat.</li>
418
419     <li><b>On other 4-fold repetitions white loses.</b></li>
420   </ul>
421
422   <h3>XBoard interface issues</h3>
423
424   <p>Mini-Shogi is (not yet) a standard variant in XBoard. It has
425   to be played in XBoard by selecting regular Shogi after having
426   set the board- and holdings-size overrides in the New Variant
427   dialog all to 5 (i.e. 5x5 board, and holdings for 5 piece types).
428   This is not all, however; the pieceToCharTable has to be changed
429   to tell XBoard that the Lance and Knight do not participate. (In
430   regular Shogi they would, but here they would push Silver and
431   Gold out of the holdings!) This can unfortunately only be done
432   through command-line options.</p>
433
434   <p>It is therefore best to put all options needed to massage
435   XBoard into playing this variant in a settings file mini.xop. On
436   install .xop files are associated with XBoard, so clicking them
437   would start XBoard with the options in that file. You could then
438   set everything in the file needed to start in mini-Shogi
439   mode:</p>
440   <pre>
441 -variant shogi
442 -boardHeight 5
443 -boardWidth 5
444 -holdingsSize 5
445 -pieceToCharTable "P.BR.S...G.+.++.+Kp.br.s...g.+.++.+k"
446 </pre>Since the game is just a subset of regular Shogi, legality
447 testing can remain on. You could also specify your favorite
448 mini-Shogi engine with -fcp in that file.
449
450   <p>You can drop pieces by dragging them onto the board from the
451   holdings displayed beside the board.</p>
452
453   <p>Of course there will always be people that prefer an oriental
454   look, with pentagonal kanji tiles. XBoard comes with a set of
455   kanji pieces in the 'themes/shogi' sub-directory of its data
456   directory (e.g. /usr/local/share/games/xboard). You can select
457   that as -pieceImageDirectory (-pid for short) from the command
458   line, or from the View -&gt; Board dialog. You would also have to
459   tick 'Flip black pieces Shogi style' there (or use the option
460   <b>-flipBlack true</b>) to make sure the pieces won't go upside
461   down when you flip the view.</p>
462
463   <h3>Differences with FIDE</h3>
464
465   <p>In stead of Queens you have Silver and Gold Generals. Pawns
466   capture straight ahead. Captured pieces can later be dropped to
467   augment the army of their capturer. There is no castling, Pawn
468   double-push or e.p. capture.</p>
469
470   <h3>Strategy issues</h3>
471
472   <p>Because pieces are dropped back, there will not be a
473   traditional end-game. Trading material does not constitute
474   progress towards winning, even when you are ahead.</p>
475
476   <p>Because Gold Generals obtained through promotion revert to
477   their original form on capture, they are really different piece
478   types from the primordial Golds that move the same. In notation
479   they are therefore not indicated as 'G', but as the ID of the
480   original piece prefixed with a '+'. Especially the promoted Pawn
481   (aka Tokin) is more valuable: it is much better to lose a Gold
482   that gives the opponent a Pawn in hand, than to lose a Gold that
483   gives him a Gold in hand.</p>
484
485   <p>It is a big advantage to have a General on the central
486   square.</p>
487
488   <p>Pieces in hand are in general worth more than on the board, as
489   they are much more mobile. And you can drop them in the promotion
490   for an easy promotion on the next turn. But pieces in hand cannot
491   capture anything, and don't guard your promotion zone.</p>
492 </div><!-- for id="content", starts in the include above -->
493 <!--#include virtual="/server/footer.html" -->
494 </body>
495 </html>