39f81574889ae2690823b6743ab680db3abd4a19
[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">2.1 File Menu</h3>
34
35 <p><a name="index-File-Menu-4"></a><a name="index-Menu_002c-File-5"></a>
36      <dl>
37 <dt>New Game<dd><a name="index-New-Game_002c-Menu-Item-6"></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-7"></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-8"></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 <br><dt>Load Game<dd><a name="index-Load-Game_002c-Menu-Item-9"></a>Plays a game from a record file. The <kbd>Ctrl-O</kbd> key is a keyboard equivalent. 
63 A pop-up dialog prompts you for the file name. If the file contains more
64 than one game, a second pop-up dialog
65 displays a list of games (with information drawn from their PGN tags, if
66 any), and you can select the one you want. Alternatively, you can load the
67 Nth game in the file directly, by typing the number <kbd>N</kbd> after the
68 file name, separated by a space.
69
70      <p>The game file parser will accept PGN (portable game notation),
71 or in fact almost any file that contains moves in algebraic
72 notation. 
73 Notation of the form &lsquo;<samp><span class="samp">P@f7</span></samp>&rsquo;
74 is accepted for piece-drops in bughouse games;
75 this is a nonstandard extension to PGN. 
76 If the file includes a PGN position (FEN tag), or an old-style
77 XBoard position diagram bracketed by &lsquo;<samp><span class="samp">[--</span></samp>&rsquo; and &lsquo;<samp><span class="samp">--]</span></samp>&rsquo;
78 before the first move, the game starts from that position. Text
79 enclosed in parentheses, square brackets, or curly braces is assumed to
80 be commentary and is displayed in a pop-up window. Any other
81 text in the file is ignored. PGN variations (enclosed in
82 parentheses) also are treated as comments;
83 however, if you rights-click them in the comment window,
84 XBoard will shelve the current line, and load the the selected variation,
85 so you can step through it. 
86 You can later revert to the previous line with the &lsquo;<samp><span class="samp">Revert</span></samp>&rsquo; command. 
87 This way you can walk quite complex varation trees with XBoard. 
88 The nonstandard PGN tag [Variant "varname"] functions similarly to
89 the -variant command-line option (see below), allowing games in certain chess
90 variants to be loaded. 
91 Note that it must appear before any FEN tag for XBoard to recognize
92 variant FENs appropriately. 
93 There is also a heuristic to
94 recognize chess variants from the Event tag, by looking for the strings
95 that the Internet Chess Servers put there when saving variant ("wild") games. 
96 <br><dt>Load Position<dd><a name="index-Load-Position_002c-Menu-Item-10"></a>Sets up a position from a position file.  A pop-up dialog prompts
97 you for the file name.  The shifted <kbd>Ctrl-O</kbd> key is a keyboard
98 equivalent. If the file contains more than one saved
99 position, and you want to load the Nth one, type the number N
100 after the file name, separated by a space. Position files must
101 be in FEN (Forsythe-Edwards notation), or in the format that the
102 Save Position command writes when oldSaveStyle is turned on. 
103 <br><dt>Load Next Position<dd><a name="index-Load-Next-Position_002c-Menu-Item-11"></a>Loads the next position from the last position file you loaded. 
104 The shifted <kbd>PgDn</kbd> key is a keyboard equivalent. 
105 <br><dt>Load Previous Position<dd><a name="index-Load-Previous-Position_002c-Menu-Item-12"></a>Loads the previous position from the last position file you
106 loaded. The shifted <kbd>PgUp</kbd> key is a keyboard equivalent. 
107 Not available if the last position was loaded from a pipe. 
108 <br><dt>Save Game<dd><a name="index-Save-Game_002c-Menu-Item-13"></a>Appends a record of the current game to a file. 
109 The <kbd>Ctrl-S</kbd> key is a keyboard equivalent. 
110 A pop-up dialog
111 prompts you for the file name. If the game did not begin with
112 the standard starting position, the game file includes the
113 starting position used. Games are saved in the PGN (portable
114 game notation) format, unless the oldSaveStyle option is true,
115 in which case they are saved in an older format that is specific
116 to XBoard. Both formats are human-readable, and both can be
117 read back by the &lsquo;<samp><span class="samp">Load Game</span></samp>&rsquo; command. 
118 Notation of the form &lsquo;<samp><span class="samp">P@f7</span></samp>&rsquo;
119 is accepted for piece-drops in bughouse games;
120 this is a nonstandard extension to PGN. 
121 <br><dt>Save Position<dd><a name="index-Save-Position_002c-Menu-Item-14"></a>Appends a diagram of the current position to a file. 
122 The shifted <kbd>Ctrl+S</kbd> key is a keyboard equivalent. 
123 A pop-up dialog prompts you for the file name. Positions are saved in
124 FEN (Forsythe-Edwards notation) format unless the <code>oldSaveStyle</code>
125 option is true, in which case they are saved in an older,
126 human-readable format that is specific to XBoard. Both formats
127 can be read back by the &lsquo;<samp><span class="samp">Load Position</span></samp>&rsquo; command. 
128 <br><dt>Mail Move<dt>Reload CMail Message<dd><a name="index-Mail-Move_002c-Menu-Item-15"></a><a name="index-Reload-CMail-Message_002c-Menu-Item-16"></a>See <a href="CMail.html#CMail">CMail</a>. 
129 <br><dt>Exit<dd><a name="index-Exit_002c-Menu-Item-17"></a>Exits from XBoard. The <kbd>Ctrl-Q</kbd> key is a keyboard equivalent. 
130 </dl>
131
132    </body></html>
133