f8d2a6b1a6b3b87394938ae19598512b8fd6da83
[xboard.git] / manual / html_node / File-Menu.html
1 <html lang="en">
2 <head>
3 <title>File Menu - XBoard</title>
4 <meta http-equiv="Content-Type" content="text/html">
5 <meta name="description" content="XBoard">
6 <meta name="generator" content="makeinfo 4.13">
7 <link title="Top" rel="start" href="index.html#Top">
8 <link rel="up" href="Menus.html#Menus" title="Menus">
9 <link rel="next" href="Edit-Menu.html#Edit-Menu" title="Edit Menu">
10 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
11 <meta http-equiv="Content-Style-Type" content="text/css">
12 <style type="text/css"><!--
13   pre.display { font-family:inherit }
14   pre.format  { font-family:inherit }
15   pre.smalldisplay { font-family:inherit; font-size:smaller }
16   pre.smallformat  { font-family:inherit; font-size:smaller }
17   pre.smallexample { font-size:smaller }
18   pre.smalllisp    { font-size:smaller }
19   span.sc    { font-variant:small-caps }
20   span.roman { font-family:serif; font-weight:normal; } 
21   span.sansserif { font-family:sans-serif; font-weight:normal; } 
22 --></style>
23 </head>
24 <body>
25 <div class="node">
26 <a name="File-Menu"></a>
27 <p>
28 Next:&nbsp;<a rel="next" accesskey="n" href="Edit-Menu.html#Edit-Menu">Edit Menu</a>,
29 Up:&nbsp;<a rel="up" accesskey="u" href="Menus.html#Menus">Menus</a>
30 <hr>
31 </div>
32
33 <h3 class="section">3.1 File Menu</h3>
34
35 <p><a name="index-File-Menu-5"></a><a name="index-Menu_002c-File-6"></a>
36      <dl>
37 <dt>New Game<dd><a name="index-New-Game_002c-Menu-Item-7"></a>Resets XBoard and the chess engine to the beginning of a new chess
38 game. The <kbd>Ctrl-N</kbd> key is a keyboard equivalent. In Internet Chess
39 Server mode, clears the current state of XBoard, then
40 resynchronizes with the ICS by sending a refresh command. If you want to
41 stop playing, observing, or examining an ICS game, use an
42 appropriate command from the Action menu, not &lsquo;<samp><span class="samp">New Game</span></samp>&rsquo;. 
43 See <a href="Action-Menu.html#Action-Menu">Action Menu</a>. 
44 <br><dt>New Shuffle Game<dd><a name="index-New-Shuffle-Game_002c-Menu-Item-8"></a>Similar to &lsquo;<samp><span class="samp">New Game</span></samp>&rsquo;, but allows you to specify a particular initial position
45 (according to a standardized numbering system)
46 in chess variants which use randomized opening positions (e.g. Chess960). 
47 The selected opening position will persistently be chosen on any following
48 New Game command until you use this menu to select another. Selecting
49 position number -1 will produce a newly randomized position on any new game. 
50 Using this menu item in variants that normally do not shuffle their opening position
51 does cause these variants to become shuffle variants until you use the
52 &lsquo;<samp><span class="samp">New Shuffle Game</span></samp>&rsquo; menu to explicitly switch the randomization off,
53 or select a new variant. 
54 <br><dt>New Variant<dd><a name="index-New-variant_002c-Menu-Item-9"></a>Allows you to select a new chess variant in non-ICS mode. 
55 (In ICS play, the ICS is responsible for deciding which variant will be played,
56 and XBoard adapts automatically.)  The shifted <kbd>Alt+V</kbd> key is a
57 keyboard equivalent. If you play with an engine, the engine must
58 be able to play the selected variant, or the command will be ignored. 
59 XBoard supports all major variants, such as xiangqi, shogi, chess, chess960,
60 Capablanca Chess, shatranj, crazyhouse, bughouse. 
61 But not every board size has built-in bitmaps for un-orthodox pieces! 
62 Only sizes bulky (72) and middling (49) have all pieces,
63 while size petite (33) has most. 
64 These sizes would have to be set at startup through the <code>size</code>
65 command-line option when you start up XBoard for such variants to be playable.
66
67      <p>You can overrule the default board format of the selected variant,
68 (e.g. to play suicide chess on a 6 x 6 board),
69 in this dialog, but normally you would not do that,
70 and leave them at '-1', which means 'default'. 
71 <br><dt>Load Game<dd><a name="index-Load-Game_002c-Menu-Item-10"></a>Plays a game from a record file. The <kbd>Ctrl-O</kbd> key is a keyboard equivalent. 
72 A pop-up dialog prompts you for the file name. If the file contains more
73 than one game, a second pop-up dialog
74 displays a list of games (with information drawn from their PGN tags, if
75 any), and you can select the one you want. Alternatively, you can load the
76 Nth game in the file directly, by typing the number <kbd>N</kbd> after the
77 file name, separated by a space.
78
79      <p>The game file parser will accept PGN (portable game notation),
80 or in fact almost any file that contains moves in algebraic
81 notation. 
82 Notation of the form &lsquo;<samp><span class="samp">P@f7</span></samp>&rsquo;
83 is accepted for piece-drops in bughouse games;
84 this is a nonstandard extension to PGN. 
85 If the file includes a PGN position (FEN tag), or an old-style
86 XBoard position diagram bracketed by &lsquo;<samp><span class="samp">[--</span></samp>&rsquo; and &lsquo;<samp><span class="samp">--]</span></samp>&rsquo;
87 before the first move, the game starts from that position. Text
88 enclosed in parentheses, square brackets, or curly braces is assumed to
89 be commentary and is displayed in a pop-up window. Any other
90 text in the file is ignored. PGN variations (enclosed in
91 parentheses) also are treated as comments;
92 however, if you rights-click them in the comment window,
93 XBoard will shelve the current line, and load the the selected variation,
94 so you can step through it. 
95 You can later revert to the previous line with the &lsquo;<samp><span class="samp">Revert</span></samp>&rsquo; command. 
96 This way you can walk quite complex varation trees with XBoard. 
97 The nonstandard PGN tag [Variant "varname"] functions similarly to
98 the -variant command-line option (see below), allowing games in certain chess
99 variants to be loaded. 
100 Note that it must appear before any FEN tag for XBoard to recognize
101 variant FENs appropriately. 
102 There is also a heuristic to
103 recognize chess variants from the Event tag, by looking for the strings
104 that the Internet Chess Servers put there when saving variant ("wild") games. 
105 <br><dt>Load Position<dd><a name="index-Load-Position_002c-Menu-Item-11"></a>Sets up a position from a position file.  A pop-up dialog prompts
106 you for the file name.  The shifted <kbd>Ctrl-O</kbd> key is a keyboard
107 equivalent. If the file contains more than one saved
108 position, and you want to load the Nth one, type the number N
109 after the file name, separated by a space. Position files must
110 be in FEN (Forsythe-Edwards notation), or in the format that the
111 Save Position command writes when oldSaveStyle is turned on. 
112 <br><dt>Load Next Position<dd><a name="index-Load-Next-Position_002c-Menu-Item-12"></a>Loads the next position from the last position file you loaded. 
113 The shifted <kbd>PgDn</kbd> key is a keyboard equivalent. 
114 <br><dt>Load Previous Position<dd><a name="index-Load-Previous-Position_002c-Menu-Item-13"></a>Loads the previous position from the last position file you
115 loaded. The shifted <kbd>PgUp</kbd> key is a keyboard equivalent. 
116 Not available if the last position was loaded from a pipe. 
117 <br><dt>Save Game<dd><a name="index-Save-Game_002c-Menu-Item-14"></a>Appends a record of the current game to a file. 
118 The <kbd>Ctrl-S</kbd> key is a keyboard equivalent. 
119 A pop-up dialog
120 prompts you for the file name. If the game did not begin with
121 the standard starting position, the game file includes the
122 starting position used. Games are saved in the PGN (portable
123 game notation) format, unless the oldSaveStyle option is true,
124 in which case they are saved in an older format that is specific
125 to XBoard. Both formats are human-readable, and both can be
126 read back by the &lsquo;<samp><span class="samp">Load Game</span></samp>&rsquo; command. 
127 Notation of the form &lsquo;<samp><span class="samp">P@f7</span></samp>&rsquo;
128 is accepted for piece-drops in bughouse games;
129 this is a nonstandard extension to PGN. 
130 <br><dt>Save Position<dd><a name="index-Save-Position_002c-Menu-Item-15"></a>Appends a diagram of the current position to a file. 
131 The shifted <kbd>Ctrl+S</kbd> key is a keyboard equivalent. 
132 A pop-up dialog prompts you for the file name. Positions are saved in
133 FEN (Forsythe-Edwards notation) format unless the <code>oldSaveStyle</code>
134 option is true, in which case they are saved in an older,
135 human-readable format that is specific to XBoard. Both formats
136 can be read back by the &lsquo;<samp><span class="samp">Load Position</span></samp>&rsquo; command. 
137 <br><dt>Mail Move<dt>Reload CMail Message<dd><a name="index-Mail-Move_002c-Menu-Item-16"></a><a name="index-Reload-CMail-Message_002c-Menu-Item-17"></a>See <a href="CMail.html#CMail">CMail</a>. 
138 <br><dt>Exit<dd><a name="index-Exit_002c-Menu-Item-18"></a>Exits from XBoard. The <kbd>Ctrl-Q</kbd> key is a keyboard equivalent. 
139 </dl>
140
141    </body></html>
142