Merge commit 'v4.3.16'
[xboard.git] / FAQ.html
1 <HTML><HEAD><TITLE>\r
2 XBoard and WinBoard: Frequently Asked Questions</TITLE></HEAD>\r
3 <BODY>\r
4 <H1>XBoard and WinBoard: Frequently Asked Questions</H1>\r
5 \r
6 This document answers some frequently asked questions about the\r
7 graphical chess interfaces XBoard and WinBoard.\r
8 A hyperlinked version of this FAQ is available on\r
9 the Web through the page\r
10 <A HREF=\r
11 "http://www.tim-mann.org/chess.html"\r
12 >http://www.tim-mann.org/chess.html</A>.\r
13 \r
14 <i>This FAQ is in need of revision.  Please contact us if you'd like\r
15 to help update it.</i>\r
16 \r
17 <HR>\r
18 <H2>Outline</H2>\r
19 \r
20 <UL>\r
21 <LI><A HREF="#[A0]">[A] Introduction and hot topics</A></LI>\r
22 <LI><A HREF="#[B0]">[B] XBoard and WinBoard</A></LI>\r
23 <LI><A HREF="#[C0]">[C] XBoard and WinBoard, bugs and problems</A></LI>\r
24 <LI><A HREF="#[D0]">[D] Crafty and other topics</A></LI>\r
25 </UL>\r
26 \r
27 <HR>\r
28 <H2>Detailed contents</H2>\r
29 \r
30 <UL>\r
31 <LI><A NAME="[A0]" HREF="#[A]">[A] Introduction and hot topics</A></LI> \r
32 <UL>\r
33 <LI><a href="#[A.1]">[A.1] What are XBoard and WinBoard?</a></li>\r
34 <LI><A HREF="#[A.2]">[A.2] Where can I get chess information and chess\r
35   software?</A></LI> \r
36 <LI><A HREF="#[A.3]">[A.3] What are the current version numbers for\r
37   XBoard and WinBoard?</A></LI> \r
38 <LI><A HREF="#[A.4]">[A.4] Who is working on this project?</A></LI>\r
39 <LI><A HREF="#[A.5]">[A.5] How do I report bugs, offer help, etc.?</A></LI>\r
40 <LI><a href="#[A.6]">[A.6] What are the future plans for XBoard and\r
41   WinBoard?</A></LI>\r
42 </UL>\r
43 \r
44 <LI><A NAME="[B0]" HREF="#[B]">[B] XBoard and WinBoard</A></LI>\r
45 <UL>\r
46 <LI><A HREF="#[B.1]">[B.1] What is XBoard?</A></LI>\r
47 <LI><A HREF="#[B.2]">[B.2] Is there an XBoard for Microsoft Windows?  What is\r
48   WinBoard?  How do I install WinBoard?</A></LI>\r
49 <LI><A HREF="#[B.3]">[B.3] Is there an XBoard for the Amiga?  What is\r
50   AmyBoard?</A></LI>\r
51 <LI><A HREF="#[B.4]">[B.4] Is there an XBoard for the Macintosh?</A></LI>\r
52 <LI><A HREF="#[B.5]">[B.5] Does XBoard run on VMS?</A></LI>\r
53 <LI><A HREF="#[B.6]">[B.6] What is cmail?</A></LI>\r
54 <LI><A HREF="#[B.7]">[B.7] How do I build XBoard?  Do I have to have\r
55   gcc?</A></LI>\r
56 <LI><A HREF="#[B.8]">[B.8] Can I use XBoard or WinBoard to play a game\r
57   of chess with another human?</A></LI>\r
58 <LI><A HREF="#[B.9]">[B.9] Will WinBoard run on Windows 3.1?  \r
59   How about Windows CE (also known as Pocket PC)?</A></LI>\r
60 <LI><A HREF="#[B.10]">[B.10] How do I use XBoard or WinBoard as an external\r
61   viewer for PGN files with my Web browser?</A></LI>\r
62 <LI><A HREF="#[B.11]">[B.11] How do I use WinBoard as an external viewer for\r
63   PGN files with the MS Windows File Manager or Explorer?</A></LI>\r
64 <LI><A HREF="#[B.12]">[B.12] How do I use ICC timestamp or FICS timeseal\r
65   with XBoard?</A></LI>\r
66 <LI><A HREF="#[B.13]">[B.13] How do I use ICC timestamp or FICS timeseal\r
67   with WinBoard?</A></LI>\r
68 <LI><A HREF="#[B.14]">[B.14] How do I play bughouse with XBoard or WinBoard?\r
69 </A></LI>\r
70 <li><a href="#[B.16]">[B.16]\r
71   What is Zippy?  How can I interface a chess program to the Internet \r
72   Chess Servers?</a></li> \r
73 <li><a href="#[B.17]">[B.17]\r
74   How can I interface my own chess program to XBoard or WinBoard?</a></li>\r
75 <li><a href="#[B.18]">[B.18]\r
76   How can I recompile WinBoard from source?</a></li>\r
77 <li><a href="#[B.19]">[B.19]\r
78   How can I use XBoard or WinBoard to talk\r
79   to an Internet Chess Server through a firewall or proxy?</a></li>\r
80 <li><a href="#[B.20]">[B.20] \r
81   How can I use XBoard or WinBoard on chess.net with accuclock?</a></li>\r
82 <li><a href="#[B.21]">[B.21]\r
83   Can I get Zippy to do one or more ICS commands automatically at the \r
84   start or end of each game?</a></li>\r
85 <li><a href="#[B.22]">[B.22]\r
86   How do I print from WinBoard?</a></li>\r
87 <li><a href="#[B.23]">[B.23]\r
88   Can I get Zippy to automatically reconnect to ICS when its connection \r
89   breaks?</a></li>\r
90 <li><a href="#[B.24]">[B.24]\r
91   The chess engines are too strong and always beat me.  How can I adjust\r
92   the difficulty level to make them weaker?</a></li>\r
93 <li><a href="#[B.25]">[B.25]\r
94   May I use the piece bitmaps from XBoard/WinBoard in my own program?</a></li>\r
95 \r
96 </UL>\r
97 \r
98 <LI><A NAME="[C0]" HREF="#[C]">[C] XBoard and WinBoard, bugs and \r
99   problems</A></LI>\r
100 <UL>\r
101 <LI><A HREF="#[C.1]">[C.1] I can't build XBoard because the\r
102   X11/Xaw/... include files are not found.</A></LI>\r
103 <LI><A HREF="#[C.2]">[C.2] Configuring or building XBoard fails due to\r
104   missing header files, missing libraries, or undefined symbols.</a></li>\r
105 <LI><A HREF="#[C.3]">[C.3] I have problems using WinBoard on ICS with a modem.\r
106   I'm not running SLIP or PPP, but just dialing in to an ordinary login account\r
107 ("shell account").</A></LI>\r
108 <LI><A HREF="#[C.4]">[C.4] \r
109   I have problems using WinBoard on ICS with Windows 95 and SLIP\r
110   or PPP.  When trying to start up, it gets the error "Address family\r
111   not supported by protocol family" (or some equally strange message).\r
112 </A></LI> \r
113 <LI><A HREF="#[C.5]">[C.5] When I try to run WinBoard, I get the message\r
114   "Failed to start chess program gnuchess on localhost: NO LANGFILE (file\r
115   gnuchess.lan not found)".</A></LI>\r
116 <LI><A HREF="#[C.6]">[C.6] I want to use XBoard or WinBoard as an Internet\r
117   Chess Server interface, but the ICS Client option is grayed out on the\r
118   menu.</A></LI> \r
119 <LI><A HREF="#[C.7]">[C.7] How do I give command-line options to\r
120   a Windows program like WinBoard?</A></LI>\r
121 <LI><A HREF="#[C.9]">[C.9]\r
122   When I exit from WinBoard after using it to play against a chess\r
123   program on my machine, the chess program keeps running in the background.\r
124 </A></LI>\r
125 <li><a href="#[C.12]">[C.12]\r
126   Why do my ICS \r
127   opponents often get extra time after they make their moves?\r
128   Why do I sometimes lose time off my clock after I make my move?\r
129 </a></li>\r
130 <li><a href="#[C.13]">[C.13]\r
131   I can't run WinBoard unless I delete the WinBoard.ini file each time!\r
132 </a></li>\r
133 <li><a href="#[C.15]">[C.15]\r
134   I get errors compiling XBoard's parser.c.\r
135 </a></li>\r
136 <li><a href="#[C.16]">[C.16]\r
137   I get an error building WinBoard from source because "flex" is not found.\r
138 </a></li>\r
139 <li><a href="#[C.17]">[C.17]\r
140   XBoard hangs shortly after connecting to an ICS when used with dxterm,\r
141   cmdtool, dtterm, kterm, konsole, or other substitutes for xterm.\r
142 </a></li>\r
143 <li><a href="#[C.18]">[C.18]\r
144   The WinBoard pieces show up in the wrong colors, appear distorted,\r
145   or are not visible at all.\r
146 </a></li>\r
147 <LI><A HREF="#[C.19]">[C.19] XBoard or WinBoard tells me\r
148 "Error: first chess program (...) exited unexpectedly".</A></LI> \r
149 <li><a href="#[C.20]">[C.20]\r
150   XBoard tells me "Warning: Cannot allocate colormap entry", or\r
151   "too few colors available; trying monochrome mode", or\r
152   "XPM pieces cannot be used in monochrome mode".\r
153 </a></li>\r
154 <li><a href="#[C.21]">[C.21]\r
155   When I log in to freechess.org, the Enter key doesn't work, and I \r
156   have to use Ctrl+J instead.  But when I use WinBoard, Ctrl+J doesn't\r
157   work either, so I'm stuck.\r
158 </a></li>\r
159 <li><a href="#[C.22]">[C.22]\r
160   XBoard says, "Failed to start first chess program gnuchessx\r
161   on localhost: gnuchessx: No such file or directory."  \r
162 </a></li>\r
163 </UL>\r
164 \r
165 <LI><A NAME="[D0]" HREF="#[D]">[D] Crafty and other topics</A></LI>\r
166 <UL>\r
167 <LI><A HREF="#[D.1]">[D.1] What is XChess?</A></LI>\r
168 <LI><A HREF="#[D.2]">[D.2] What is Winsock Chess?</A></LI>\r
169 <LI><A HREF="#[D.3]">[D.3] What is Crafty?</A></LI>\r
170 <LI><A HREF="#[D.4]">[D.4] How do I use Crafty with XBoard?</A></LI>\r
171 <LI><A HREF="#[D.5]">[D.5] How do I use Crafty with WinBoard?</A></LI>\r
172 <LI><A HREF="#[D.6]">[D.6] How do I use GNU Chess 5 with XBoard?</A></LI>\r
173 </UL>\r
174 </UL>\r
175 \r
176 <HR>\r
177 <H2><A NAME="[A]">[A] Introduction and hot topics</A></H2>\r
178 <HR>\r
179 <H3><A NAME="[A.1]">[A.1] What are XBoard and WinBoard?</A></H3>\r
180 \r
181 XBoard and WinBoard are graphical user interfaces for chess.  \r
182 XBoard runs with the X Window System on Unix systems (including\r
183 GNU/Linux); see topic\r
184 <A HREF="#[B.1]">[B.1]</A>.\r
185 WinBoard runs on true 32-bit Microsoft Windows operating\r
186 systems, such as Windows 95, 98, NT,\r
187 2000, ME, XP, and should continue to work\r
188 on future 32-bit Windows systems.  It does\r
189 not work on Windows CE (also known as Pocket PC), nor does it work on\r
190 16-bit Windows systems such as Windows 3.1.  See topic\r
191 <A HREF="#[B.2]">[B.2]</A>.\r
192 \r
193 <HR>\r
194 <H3><A NAME="[A.2]">[A.2] Where can I get chess information and chess \r
195 software?</A></H3>\r
196 \r
197 As a shortcut to most things mentioned in this FAQ, try Tim Mann's\r
198 Chess Web page, <A HREF= "http://www.tim-mann.org/chess.html"\r
199 >http://www.tim-mann.org/chess.html</A>.  This page page is a good\r
200 place to get the latest released versions of XBoard and WinBoard and\r
201 the most up-to-date version of this FAQ.  Also see our Savannah\r
202 project pages at <a href="https://savannah.gnu.org/projects/xboard/"\r
203 >https://savannah.gnu.org/projects/xboard/</a>.\r
204 \r
205 <p>If you have other questions about XBoard/WinBoard that aren't answered\r
206 in this FAQ, you can try Aaron Tay's WinBoard and Chess Engines FAQ, at\r
207 <a href="http://www.aarontay.per.sg/Winboard/"\r
208 >http://www.aarontay.per.sg/Winboard/</a>.\r
209 \r
210 <P>For general news and information about chess, try the newsgroup hierarchy\r
211 rec.games.chess.*, especially the groups rec.games.chess.misc and\r
212 rec.games.chess.computer.  Both of the latter groups have very informative\r
213 FAQs maintained by Steve Pribut; look for them on the newsgroups or at\r
214 <A HREF=\r
215 "http://www.clark.net/pub/pribut/chess.html"\r
216 >http://www.clark.net/pub/pribut/chess.html</A>.\r
217 \r
218 <P>Like other GNU software, you can get XBoard, and\r
219 WinBoard by anonymous FTP from \r
220 <A HREF=\r
221 "ftp://ftp.gnu.org/pub/gnu/"\r
222 >ftp://ftp.gnu.org/pub/gnu/</A>\r
223 and its many mirror sites.  Look in the subdirectories xboard, and winboard.\r
224 The .tar.gz suffix on the files there indicates they were packed with tar\r
225 and compressed with gzip.  The .exe or .zip suffixes indicate files that\r
226 were packed and compressed with zip.\r
227 \r
228 <P>For other chess software, try the Internet Chess Library.  Use anonymous FTP\r
229 to connect to ftp.freechess.org, or go to the Web page\r
230 <A HREF=\r
231 "http://www.freechess.org/"\r
232 >http://www.freechess.org/</A>.\r
233 You can get chess software, game\r
234 collections, the FAQ file for rec.games.chess, and other chess-related\r
235 material there, in the directory pub/chess.  The FTP server can\r
236 automatically decompress files for you as you download them, useful if you\r
237 don't have gzip.\r
238 \r
239 <P>Here is a sample anonymous ftp session.  Some of the ftp server's responses\r
240 are abbreviated, but all the commands you must type are included.\r
241 \r
242 <p><PRE>\r
243     % ftp ftp.gnu.org\r
244     Connected to ftp.gnu.org\r
245     Name: anonymous\r
246     Password: your-email-address@your-site\r
247     ftp&gt; binary\r
248     200 Type set to I.\r
249     ftp&gt; cd /pub/gnu/xboard\r
250     ftp&gt; dir\r
251     -rw-r--r-- 1 14910 wheel  1057625 May 20 00:25 xboard-4.2.7.tar.gz\r
252     ftp&gt; get xboard-4.2.7.tar.gz\r
253     150 BINARY connection for xboard-4.2.7.tar.gz (1057625 bytes).\r
254     226 Transfer complete.\r
255     ftp&gt; quit\r
256 </PRE>\r
257 \r
258 <HR>\r
259 <H3><A NAME="[A.3]">[A.3] What are the current version numbers for \r
260 XBoard and WinBoard?</A></H3>\r
261 \r
262 At this writing, the current version numbers are:\r
263 \r
264 <UL>\r
265 <LI>XBoard 4.2.7</LI>\r
266 <LI>WinBoard 4.2.7</LI>\r
267 </UL>\r
268 \r
269 <HR>\r
270 <H3><A NAME="[A.4]">[A.4] Who is working on this project?</A></H3>\r
271 \r
272 Please see our Savannah project pages at <a\r
273 href="https://savannah.gnu.org/projects/xboard/"\r
274 >https://savannah.gnu.org/projects/xboard/</a> for a list of active\r
275 developers.  Many others occasionally contribute suggestions and\r
276 snippets of code, for which we are grateful.\r
277 \r
278 <HR>\r
279 <H3><A NAME="[A.5]">[A.5] How do I report bugs, offer help, etc.?</A></H3>\r
280 \r
281 <P>Bug reports, suggestions, and offers to help on XBoard\r
282 or WinBoard should be sent to\r
283 bug-xboard<a name="nospam">&#x40;</a>gnu.org.\r
284 \r
285 <p>Beginner questions and discussion about the program may get faster\r
286 answers on the WinBoard Forum at <a\r
287 href="http://f11.parsimony.net/forum16635/"\r
288 >http://f11.parsimony.net/forum16635/</a>.  \r
289 \r
290 <p>If you are developing a\r
291 chess engine that works with XBoard or WinBoard (or an alternative\r
292 GUI that works with such engines), see the Chess Engines mailing\r
293 list, hosted at\r
294 <a href="http://groups.yahoo.com/group/chess-engines"\r
295 >http://groups.yahoo.com/group/chess-engines</a>.\r
296 \r
297 <P>Any time you want to report a possible bug in XBoard or WinBoard,\r
298 we need to know exactly what you did, and exactly what error (or\r
299 other) messages you got.\r
300 \r
301 <P>If you are using Unix, run the "script" program, run XBoard with\r
302 the -debug flag (if you get as far as running it), do whatever is\r
303 necessary to reproduce the problem, type "exit" to the shell, and mail\r
304 us the resulting typescript file.  We also need to know what\r
305 hardware/operating system combination you are using.  The command\r
306 "uname -a" will usually tell you this; include its output in your\r
307 typescript.\r
308 \r
309 <P>If you are using MS Windows, run WinBoard with the -debug flag, and\r
310 send us a copy of the WinBoard.debug file.  If you aren't sure how to\r
311 add command-line flags to WinBoard, you can hit Ctrl+Alt+F12 to create\r
312 a WinBoard.debug file after WinBoard starts, but that is not as good,\r
313 because a few messages that would have been printed at the start are\r
314 lost.\r
315 \r
316 <p>Either way, please send us the exact text of the commands you typed\r
317 and the output you got, not just your recollection of approximately\r
318 what they were.  The messages may seem meaningless to you, but they\r
319 are very meaningful to us and essential for diagnosing problems.\r
320 \r
321 <hr>\r
322 <h3><a name="[A.6]">[A.6] What are the future plans for XBoard and\r
323   WinBoard?</a></h3>\r
324 \r
325 <p>Our plans are always in flux.  As with most free software projects,\r
326 the next release will happen when it happens -- or it may never\r
327 happen.  This has always been the policy for XBoard/WinBoard.\r
328 Releases have never been promised in specific time frames.\r
329 \r
330 <p>Starting in November 2003, several new developers have joined the\r
331 project, and work is now hosted at <a\r
332 href="https://savannah.gnu.org/projects/xboard/"\r
333 >https://savannah.gnu.org/projects/xboard/</a>.  Lots of work is just\r
334 getting underway, but nothing is far along yet.\r
335 \r
336 <p>Here is a partial list of items that have a nonzero probability of\r
337 happening in finite time.\r
338 \r
339 <ul>\r
340 <li>Small bug fixes.  Occasionally someone sends us a fix, or reports\r
341 a small bug very clearly so that we're able to fix it in a few minutes\r
342 work.<p>\r
343 \r
344 <li>Protocol version 3.  The members of the chess engine authors'\r
345 mailing list discussed a set of proposed features for the next version\r
346 of the XBoard/WinBoard chess engine communication protocol.\r
347 Unfortunately, this project has gotten only as far as that discussion\r
348 took it; no revisions of the protocol spec or coding have been done\r
349 yet.  A few simple features are very clearly needed, though, and will\r
350 probably appear in time.<p>\r
351 \r
352 <li>Contributed features.  Several people have mailed me code to add\r
353 various features.  Most of this code is available on the\r
354 XBoard/WinBoard extensions page at <a\r
355 href="http://www.tim-mann.org/extensions.html"\r
356 >http://www.tim-mann.org/extensions.html</a>, but it is not in any\r
357 official releases yet.  We are in the process of getting folks to\r
358 formally assign the copyrights on their contributions to the Free\r
359 Software Foundation so that we can include it in official releases in\r
360 the future.<p>\r
361 \r
362 <li>Internationalization.  Several people have expressed interest in\r
363 internationalizing XBoard/WinBoard, and so hopefully this project will\r
364 go forward.  Once the internationalization support is in, we will need\r
365 more translators.  Watch for news on the xboard-devel mailing list on\r
366 our Savannah pages.\r
367 \r
368 </ul>\r
369 \r
370 <HR>\r
371 <H2><A NAME="[B]">[B] XBoard and WinBoard</A></H2>\r
372 <HR>\r
373 <H3><A NAME="[B.1]">[B.1] What is XBoard?</A></H3>\r
374 \r
375 XBoard is a graphical user interface for chess.  It displays a\r
376 chessboard on the screen, accepts moves made with the mouse, and loads\r
377 and saves games in Portable Game Notation (PGN).  XBoard is free software.\r
378 It serves as a front-end for many different chess services, including:\r
379 \r
380 <p><strong>Chess engines</strong> that will run on your machine and\r
381 play a game against you or help you analyze, such as GNU Chess and\r
382 Crafty (topic <A HREF="#[D.3]">[D.3]</A> below).\r
383 \r
384 <p><strong>Chess servers</strong> on the Internet, where you can\r
385 connect to play chess with people from all over the world, watch other\r
386 users play, or just hang out and chat.\r
387 \r
388 <p><strong>Correspondence chess</strong> played by electronic\r
389 mail. The cmail program (topic <A HREF="#[B.6]">[B.6]</A> below)\r
390 automates the tasks of parsing email from your opponent, playing his\r
391 moves out on your board, and mailing your reply move after you've\r
392 chosen it.\r
393 \r
394 <p><strong>The Web</strong> and your own saved games. You can use\r
395 XBoard as a helper application to view PGN games in your\r
396 Web browser, or to load and save your own PGN files.\r
397 \r
398 <P>XBoard runs under Unix or Unix-compatible systems.  It requires the\r
399 X Window System, version X11R4 or later.  There are also ports of\r
400 XBoard to 32-bit Microsoft Windows and to\r
401 the Amiga.  See topics <A HREF="#[B.2]">[B.2]</A> and <A\r
402 HREF="#[B.3]">[B.3]</A> respectively.\r
403 \r
404 <HR>\r
405 <H3><A NAME="[B.2]">[B.2] Is there an XBoard for Microsoft Windows?  What is WinBoard?  How do I install WinBoard?</A></H3>\r
406 \r
407 WinBoard is a port of XBoard to 32-bit Microsoft Windows systems, such\r
408 as Windows 95, 98, NT, 2000, ME, and XP.  It uses the same back end\r
409 chess code as XBoard, but the front end graphics code is a complete\r
410 rewrite.  WinBoard is free software.\r
411 \r
412 <P>The WinBoard distribution includes a port of GNU Chess to Win32.\r
413 The GNU Chess port is distributed in executable form, with instructions for\r
414 rebuilding it from the standard GNU Chess sources (available separately).  You\r
415 should have at least 16 to 24 MB of memory to run GNU Chess with WinBoard.\r
416 \r
417 <P>The WinBoard distribution also includes the ICC timestamp and FICS\r
418 timeseal programs (topic <A HREF="#[B.12]">[B.12]</A>).\r
419 \r
420 <P>cmail (topic <A HREF="#[B.6]">[B.6]</A>) has not been ported to\r
421 Windows.  All the other XBoard functions are included in WinBoard.\r
422 The International Email Chess Group web site at <a\r
423 href="http://www.iecg.org/" >http://www.iecg.org/</a> recommends\r
424 ECTool (<a href="http://www.ectool.nu/" >http://www.ectool.nu/</a>)\r
425 for playing correspondence chess under Windows.\r
426 \r
427 <p>You install WinBoard as follows. Download the WinBoard package to\r
428 your PC (see topic <A HREF="#[A.2]">[A.2]</A>).  It will be a file\r
429 with a name like winboard-4_0_0.exe.  Double-click on this file\r
430 in the Explorer or File Manager to run it. Follow the on-screen\r
431 prompts.\r
432 \r
433 <HR>\r
434 <H3><A NAME="[B.3]">[B.3] Is there an XBoard for the Amiga?  What is AmyBoard?</A></H3>\r
435 \r
436 AmyBoard is a port of XBoard to the Amiga, by Jochen Wiedmann.\r
437 The distribution includes a port of GNU Chess.\r
438 AmyBoard is free software.\r
439 \r
440 <p>The current version of AmyBoard is 330.5 (based on XBoard 3.3.0).\r
441 No one is currently maintaining it.\r
442 \r
443 <P>System requirements:\r
444 \r
445 <UL>\r
446 <LI>An Amiga (obviously :-), running OS 2.04 or later, 2Mb RAM or more.</LI>\r
447 <LI>MUI 2.0 or later.</LI>\r
448 <LI>Workbench or another screen with no less than 640x400 pixels (adjustable\r
449   with the MUI-Prefs); this restriction is just because we don't have\r
450   bitmaps with less than 40x40 pixels per square. If someone contributes\r
451   bitmaps with 20x20 or 20x25, they will work with any Hires mode.</LI>\r
452 </UL>\r
453 <P>\r
454 If you would like to use an ICS, you need an Internet connection via either\r
455 \r
456 <UL>\r
457 <LI>a telnet-like program, or</LI>\r
458 <LI>a terminal program reading from stdin and writing to stdout.</LI>\r
459 </UL>\r
460 <P>\r
461 AmyBoard is available in the Internet Chess Library (topic <A HREF="#[A.2]">[A.2]</A>).\r
462 \r
463 <HR>\r
464 <H3><A NAME="[B.4]">[B.4] Is there an XBoard for the Macintosh?</A></H3>\r
465 \r
466 Note: I am not a Mac user and have not tried this myself, so I cannot \r
467 answer questions about it. \r
468  \r
469 <p>Because MacOS X has a Unix base, XBoard will compile and run on it. \r
470 You do need an X11 (X Window System) server and client libraries. I'm \r
471 told that these come standard with MacOS X 10.3 and later. Once you \r
472 install the X11 package, XBoard is reported to compile and run without \r
473 changes. \r
474  \r
475 <p>You can avoid having to compile XBoard (and GNU Chess) yourself by \r
476 using the Fink sofware packaging system. See \r
477 http://fink.sourceforge.net/ and \r
478 http://finkcommander.sourceforge.net/ for more info on Fink. \r
479  \r
480 <p>There is no version of XBoard or WinBoard that runs with the native\r
481 (non-X11) Mac graphical interface, and none that runs on MacOS 9 or\r
482 earlier.</p>\r
483 \r
484 \r
485 <HR>\r
486 <H3><A NAME="[B.5]">[B.5] Does XBoard run on VMS?</A></H3>\r
487 \r
488 No.  This port would probably be a lot easier than the Win32 and Amiga\r
489 ports were, because VMS has the X Window system (under the name\r
490 DECwindows) and is now POSIX compliant. If you are working on this, \r
491 send mail to bug-xboard<a name="nospam">&#x40;</a>gnu.org to let us know.\r
492 \r
493 \r
494 <HR>\r
495 <H3><A NAME="[B.6]">[B.6] What is cmail?</A></H3>\r
496 \r
497 cmail is a program that helps you play and keep track of electronic mail\r
498 correspondence chess games using XBoard.  It is distributed with XBoard and\r
499 has its own manual page.  cmail is free software.  It was written by\r
500 Even Welsh.  cmail has not been ported to Windows; sorry.\r
501 \r
502 <HR>\r
503 <H3><A NAME="[B.7]">[B.7] How do I build XBoard?  Do I need gcc?</A></H3>\r
504 \r
505 The first step to building XBoard is to get the distribution file.  See topic\r
506 <A HREF="#[A.2]">[A.2]</A> for places you can ftp the software from.\r
507 \r
508 <P>Next, decide what directory tree you are going to install XBoard\r
509 in.  The default is /usr/local, but you probably don't have write\r
510 access to that directory unless you are a system administrator.  If\r
511 you do, type the following to install it there:\r
512 \r
513 <p><PRE>\r
514     gzip -cd xboard-*.tar.gz | tar -xvf -\r
515     cd xboard-*/\r
516     ./configure\r
517     make\r
518     su\r
519     make install\r
520 </PRE>\r
521 \r
522 If you want to install xboard in your personal home directory ($HOME/bin),\r
523 type this:\r
524 \r
525 <p><PRE>\r
526     gzip -cd xboard-*.tar.gz | tar -xvf -\r
527     cd xboard-*/\r
528     ./configure --prefix=$HOME\r
529     make\r
530     make install\r
531 </PRE>\r
532 \r
533 <P>If the first step above fails because you don't have gzip, see\r
534 topic <A HREF="#[A.2]">[A.2]</A>, and ask a local Unix expert if you\r
535 need more help.  If you have any problems with the last two steps,\r
536 read the READ_ME and INSTALL files in the xboard-*/ directory.  You\r
537 will also find this FAQ there.\r
538 \r
539 <P>You don't need to have gcc to build XBoard.  Almost any Unix C\r
540 compiler should do.\r
541 \r
542 <HR>\r
543 <H3><A NAME="[B.8]">[B.8] Can I use XBoard or WinBoard to play a game\r
544   of chess with another human?</A></H3>\r
545 \r
546 The only way for two humans on different machines to play chess in\r
547 real time using XBoard/WinBoard is to use an Internet Chess Server\r
548 as an intermediary.  That is, each player runs his own copy of XBoard\r
549 or WinBoard, both of them log into an ICS, and they play a game there.\r
550 Two copies of XBoard/WinBoard cannot communicate with each other\r
551 directly.\r
552 \r
553 <P>Instructions on how to get started with Internet chess are included\r
554 with the XBoard and WinBoard distributions.  The network addresses\r
555 included in the distribution may not always be current.  The oldest\r
556 and largest ICS is the Internet Chess Club at chessclub.com, which now\r
557 has a fee for registered use, but still allows free unregistered use.\r
558 There are also many newer sites with no fees, using the Free Internet\r
559 Chess Server implementation (FICS).  The most active FICS site is\r
560 freechess.org.  On these and most other chess servers,\r
561 the port number to use is 5000.\r
562 \r
563 <P>If you don't have network connectivity to any ICS site, you\r
564 can run your own server using a version of the FICS code, but this\r
565 is not easy.  See <a href="http://www.tim-mann.org/ics.html#ownics"\r
566 >http://www.tim-mann.org/ics.html#ownics</a> for advice and pointers.\r
567 \r
568 <P>The cmail program included with XBoard lets you play email postal games with\r
569 another human; see topic <A HREF="#[B.6]">[B.6]</A>.\r
570 \r
571 <P>Two humans can play chess on the same machine using one copy of\r
572 XBoard/WinBoard in\r
573 Edit Game mode, but the clocks don't run in this mode, so it's of limited\r
574 usefulness.\r
575 \r
576 <P>See also topic <A HREF="#[D.2]">[D.2]</A>, Winsock Chess.\r
577 \r
578 <HR>\r
579 <H3><A NAME="[B.9]">[B.9] Will WinBoard run on Windows 3.1?\r
580   How about Windows CE (also known as Pocket PC)?\r
581 </A></H3>\r
582 \r
583 WinBoard does not run on Windows 3.1, Windows for Workgroups 3.11, etc.,\r
584 not even with the Win32s compatibility package.  The main problem is\r
585 that Win32s does not have threads or real concurrent processes.  A\r
586 port of WinBoard to Windows 3.1 is possible in theory, but it would be\r
587 difficult and messy, and no one is going to do it.\r
588 \r
589 <p>WinBoard does not run on Windows CE (also\r
590 known as Pocket PC).  I don't know what would be required to port it.\r
591 \r
592 <P>WinBoard does run well on full 32-bit versions of Windows, such as\r
593 Windows 95, 98, NT, 2000, ME, and XP, and should continue to work\r
594 on future 32-bit Windows systems.\r
595 \r
596 <HR>\r
597 <H3><A NAME="[B.10]">[B.10] How do I use XBoard or WinBoard as an external viewer for PGN files\r
598   with my Web browser?</A></H3>\r
599 \r
600 1) On Unix systems:\r
601 <P>\r
602 - Add the following line to the file .mime.types in your home directory.\r
603 (Create the file if it doesn't exist already.)\r
604 <PRE>\r
605     application/x-chess-pgn    pgn\r
606 </PRE>\r
607 <P>\r
608 - Add the following line to the file .mailcap in your home directory.\r
609 (Create the file if it doesn't exist already.)\r
610 <PRE>\r
611     application/x-chess-pgn; xboard -ncp -lgf %s\r
612 </PRE>\r
613 <P>\r
614 - Exit from your Web browser and restart it.\r
615 \r
616 <P>2) On MS Windows systems:\r
617 \r
618 <P>The exact procedure depends on which Web browser you are using.\r
619 The current version of WinBoard automatically configures itself as\r
620 your PGN viewer for local files, Netscape 4.x and later, and Internet\r
621 Explorer.  This automatic setup probably works for all other current Web\r
622 browsers, too.\r
623 \r
624 <HR>\r
625 <H3><A NAME="[B.11]">[B.11] How do I use WinBoard as an external viewer\r
626   for PGN files with the MS Windows File Manager or Explorer?</A></H3>\r
627 \r
628 WinBoard sets this up automatically when you install it, except on old\r
629 versions of Windows NT (prior to 4.0).  On Windows NT 3.51 or earlier,\r
630 go to the File Manager, click on the File menu, select Associate,\r
631 enter "pgn" as the extension, and use the Browse button to find your\r
632 copy of WinBoard and set up the association.\r
633 \r
634 <HR>\r
635 <H3><A NAME="[B.12]">[B.12] How do I use ICC timestamp or FICS timeseal\r
636 with XBoard?</A></H3>\r
637 \r
638 First, get the appropriate version of timestamp or timeseal for your\r
639 machine from ftp.chessclub.com or ftp.freechess.org.\r
640 Second, be sure that you can connect using XBoard <I>without</I>\r
641 timestamp/timeseal.  Third, be sure that you can connect using\r
642 timestamp/timeseal without XBoard.  See the help files on ICC and FICS\r
643 or ask people online if you have problems.\r
644 \r
645 <P>If you are in a completely ordinary situation, where your machine\r
646 is directly on the Internet and you can connect to ICC or FICS \r
647 without timestamp/timeseal using\r
648 just the command "xboard -ics" or "xboard -ics -icshost freechess.org",\r
649 change that command to one of the following:\r
650 \r
651 <p><PRE>\r
652     xboard -ics -icshost 204.178.125.65 -icshelper timestamp\r
653 \r
654     xboard -ics -icshost 164.58.253.13 -icshelper timeseal\r
655 </PRE>\r
656 \r
657 <p>If you have a firewall between your machine and the ICS, see topic\r
658 <A HREF="#[B.19]">[B.19]</A>.\r
659 \r
660 <P>If you normally have to use the "/icscomm" command line option on\r
661 xboard to log into a second machine, and then telnet to ICC or FICS\r
662 from there, you are going to have to run the Unix version of timestamp\r
663 or timeseal on the second machine.  (If the second machine is not\r
664 running Unix, you are out of luck.)  Get the appropriate version of\r
665 timestamp or timeseal onto the shell machine via FTP; see the help\r
666 files on ICC and FICS for instructions.  Then simply run it when you\r
667 would normally run telnet.  In this configuration you are not\r
668 protected against lag between your PC and the shell machine, or for\r
669 lag caused by heavy load on the shell machine itself from other users.\r
670 \r
671 <P>For further information on timestamp and timeseal, see the help\r
672 files on ICC and FICS.\r
673 \r
674 <HR>\r
675 <H3><A NAME="[B.13]">[B.13] How do I use ICC timestamp or FICS timeseal\r
676 with WinBoard?</A></H3>\r
677 \r
678 <P>If you select an ICS from either the WinBoard Startup dialog or the\r
679 Windows Start submenu that WinBoard installs, WinBoard automatically\r
680 runs timestamp or timeseal if the ICS you chose is known to support it.\r
681 \r
682 <P>If you are constructing a WinBoard command line by hand, add the\r
683 option "/icshelper timestamp" or "/icshelper timeseal" to the WinBoard\r
684 command line to use timestamp or timeseal.  Both timestamp.exe and\r
685 timeseal.exe are included in the WinBoard distribution.  They both\r
686 function identically to the Unix versions, as documented in "help\r
687 timestamp" on ICC and "help timeseal" on FICS.\r
688 \r
689 <p>If you have a firewall between your machine and the ICS, see topic\r
690 <A HREF="#[B.19]">[B.19]</A>.\r
691 \r
692 <P>If you normally have to use the "/icscomm" command line option on\r
693 WinBoard to log into a shell account, and then telnet to ICC or FICS\r
694 from there, you are going to have to run the Unix version of timestamp\r
695 or timeseal on the shell machine.  (If the shell account is not on a\r
696 Unix machine, you are out of luck.)  Get the appropriate version of\r
697 timestamp or timeseal onto the shell machine via FTP; see the help\r
698 files on ICC and FICS for instructions.  Then simply run it when you\r
699 would normally run telnet.  In this configuration you are not protected\r
700 against lag between your PC and the shell machine, or for lag caused by\r
701 heavy load on the shell machine itself from other users.\r
702 \r
703 <P>For further information on timestamp and timeseal, see the help\r
704 files on ICC and FICS.\r
705 \r
706 <HR>\r
707 <H3><A NAME="[B.14]">[B.14] How do I play bughouse with XBoard or WinBoard?\r
708 </A></H3>\r
709 \r
710 XBoard and WinBoard have simple but effective bughouse support.\r
711 Offboard piece holdings are shown in the board window's banner, and\r
712 you drop offboard pieces using the right mouse button.  Press it over\r
713 the destination square to pop up a menu of pieces.\r
714 \r
715 <P>XBoard and WinBoard can display only one board at a time, but you\r
716 can observe your partner's game by running a second copy of the\r
717 program and logging in as a guest.  (Unfortunately, this is not\r
718 possible if you are using the /icscomm option.)  To observe your\r
719 partner's games automatically, use the "follow" or "pfollow" ICS\r
720 command; see the ICS online help for details.\r
721 \r
722 <HR>\r
723 <h3><a name="[B.16]">[B.16] What is Zippy?  How can I interface a \r
724 chess program to the Internet Chess Servers?</a></h3>\r
725 \r
726 Zippy is an interface that lets a compatible chess engine (such as GNU\r
727 Chess or Crafty) act as a computer\r
728 player on an Internet Chess Server.  Zippy is included in both the\r
729 XBoard and WinBoard distributions.  It is implemented as a small\r
730 amount of additional code within XBoard or WinBoard.  \r
731 For documentation, see the file\r
732 zippy.README, included in both distributions or available\r
733 from my chess Web page,\r
734 <A HREF=\r
735 "http://www.tim-mann.org/chess.html"\r
736 >http://www.tim-mann/chess.html</A>.\r
737 The version of zippy.README on my Web page is often more up-to-date\r
738 than those in the XBoard/WinBoard distributions.\r
739 You'll also find a "biography" of Zippy and pointers to the original\r
740 Zippy the Pinhead comic strips on my Web page.\r
741 Please read zippy.README carefully before you ask me any questions about Zippy.\r
742 \r
743 <p>Using a computer to choose your moves on a chess server is\r
744 considered cheating unless your account is on the computer (C) list.\r
745 Read "help computer" on your favorite server for details on their\r
746 policy.  Most of the servers have plenty of computers running now, so they\r
747 will not be excited about having you run a new one unless you have\r
748 written your own chess engine.  They don't really need yet another \r
749 Crafty or GNU Chess clone.\r
750 \r
751 <HR>\r
752 <h3><a name="[B.17]">[B.17] How can I interface my own chess program\r
753 to XBoard or WinBoard?</a></h3>\r
754 \r
755 This is a non-trivial task.  XBoard and WinBoard were not designed\r
756 with a clean interface for talking to chess programs; they were\r
757 written to work with an existing version of GNU Chess that expects to\r
758 be talking to a person.  Your program has to emulate GNU Chess's\r
759 rather idiosyncratic command structure to work with XBoard and\r
760 WinBoard.  We are gradually cleaning up, improving, and documenting\r
761 the interface as newer versions of XBoard and WinBoard come out,\r
762 however.\r
763 \r
764 <p>For documentation, see the file engine-intf.html, included in both\r
765 distributions or available from my chess Web page, <A HREF=\r
766 "http://www.tim-mann.org/chess.html"\r
767 >http://www.tim-mann.org/chess.html</A>.\r
768 The version of engine-intf.html on my Web page is often more up-to-date\r
769 than those in the XBoard/WinBoard distributions.\r
770 \r
771 <HR>\r
772 <h3><a name="[B.18]">[B.18] How can I recompile WinBoard from source?</a></h3>\r
773 \r
774 The source code for WinBoard is available from the author's Web page,\r
775 <A HREF=\r
776 "http://www.tim-mann.org/chess.html"\r
777 >http://www.tim-mann.org/chess.html</A>.\r
778 \r
779 <p>WinBoard is currently developed using Microsoft Visual C++ 5.0.\r
780 You can build the program from the MSVC++ GUI by opening the project\r
781 file (winboard.dsp) and telling MSVC++ to build the project.  You can\r
782 also build it from the the command line by using the nmake program\r
783 supplied with MSVC++.\r
784 \r
785 <p>To build WinBoard with the free Cygwin tools, available from <a\r
786 href= "http://www.cygwin.com/" >http://www.cygwin.com/</a>), use the\r
787 command "make -f cygwin.mak".  WinBoard 4.2.5 was successfully\r
788 compiled with the net release of Cygwin as downloaded on 20-March-2001\r
789 (cygwin1.dll 1.1.8, gcc 2.95.2-6, binutils 20001221-1, flex 2.5.4-1),\r
790 but exhibits a command-line parsing bug; see item 511 in the ToDo file\r
791 that comes with WinBoard.  WinBoard 4.1.0 does not compile with\r
792 Cygwin.  WinBoard 4.0.7 is known to compile with Cygwin BL20.1.\r
793 \r
794 <p>To build WinBoard with Borland C++ 4.5, use "borland.mak", supplied\r
795 with the WinBoard sources, as the Makefile.  Support for Borland C++\r
796 was contributed by Don Fong and has not been tested by the author of WinBoard.\r
797 \r
798 <p>WinBoard is a Win32 application, so you definitely need a compiler\r
799 and tool set that supports Win32.  In particular, older versions of\r
800 DJGPP can build only 32-bit MSDOS programs; that is, programs that use\r
801 a DOS extender to get a 32-bit address space and do not make any\r
802 Windows calls.  The latest versions of DJGPP are said to be able to \r
803 build Win32 programs when used with the proper extension package(s),\r
804 but this is not known to work with WinBoard.  Use Cygwin instead.\r
805 \r
806 <p>See also topic <A HREF="#[C.16]">[C.16]</A>.\r
807 \r
808 <HR>\r
809 <H3><A NAME="[B.19]">[B.19] \r
810 How can I use XBoard or WinBoard to talk\r
811 to an Internet Chess Server through a firewall or proxy?\r
812 </A></H3>\r
813 \r
814 <p>There is no single answer to this question, because there are many\r
815 different kinds of firewalls in use.  They work in various different\r
816 ways and have various different security policies.  This answer can\r
817 only provide hints.\r
818 \r
819 <p>Note that you can't access Internet Chess Servers through a Web proxy,\r
820 because they are not a Web service.  You talk to them through a raw\r
821 TCP connection, not an HTTP connection.  If you can only access the\r
822 Web through a proxy, there may be a firewall that stops you from\r
823 making direct TCP connections, but there may also be a way through it.\r
824 Read on for hints, and contact your local system administrator if you\r
825 need more information about your local configuration.\r
826 \r
827 <p>A helpful user mailed me the following explanation of how to use\r
828 WinBoard with WinGate:\r
829 <blockquote>\r
830 "I have managed to setup WinBoard though my WinGate proxy.  I have the\r
831 Office version.  What I needed to do was to setup the TCP/IP\r
832 connection to add the User/Host name and my provider service name for\r
833 the DNS, but I had to leave the HOST IP address blank.  I have not\r
834 played with all the variations, so it may be just that I have the DNS\r
835 lookup enabled."\r
836 </blockquote>\r
837 I hope this helps, though I don't find it very clear.  I don't have\r
838 a copy of WinGate myself and can't help if you have questions about it.\r
839 \r
840 <p>If you are using some other non-SOCKS firewall, read the FIREWALLS section\r
841 in your XBoard or WinBoard documentation (man page, info document, or\r
842 Help file).  If you can telnet to a chess server in some way, then you\r
843 can almost certainly connect to it with xboard/WinBoard, though in\r
844 some cases you may not be able to run timestamp or timeseal.  The\r
845 timestamp and timeseal protocols require a clean, 8-bit wide TCP\r
846 connection from your machine to the ICS, which some firewalls do not\r
847 provide.\r
848 \r
849 <p>If you have a SOCKS firewall and are using <strong>XBoard</strong>,\r
850 you should be able to SOCKSify xboard and use it.  See <a\r
851 href="http://www.socks.nec.com/">http://www.socks.nec.com/</a> for\r
852 information about SOCKS and socksification.  However, if you do this,\r
853 you can't use timestamp or timeseal; what you really need is a\r
854 socksified version of timestamp or timeseal.  This is hard because the\r
855 source code for timestamp and timeseal is proprietary; the folks\r
856 running the chess servers don't give it out because that would make it\r
857 too easy to cheat.  On some versions of Unix, you may be able to\r
858 socksify a program that you don't have the source code to by running\r
859 it with an appropriate dynamic library; see <a\r
860 href="http://www.socks.nec.com/">http://www.socks.nec.com/</a>.  For\r
861 others, you might be able to get a pre-built socksified version from\r
862 the chess server administrators.  For timeseal versions, see <a\r
863 href="ftp://ftp.freechess.org/pub/chess/timeseal/"\r
864 >ftp://ftp.freechess.org/pub/chess/timeseal/</a>.  For timestamp\r
865 versions, the directory would be <a\r
866 href="ftp://ftp.chessclub.com/pub/icc/timestamp/"\r
867 >ftp://ftp.chessclub.com/pub/icc/timestamp/</a>, but at this writing\r
868 there don't seem to be any socksified timestamps there.  Once you have\r
869 a socksified timestamp or timeseal, simply run it with a normal,\r
870 non-socksified xboard in place of the standard timestamp or timeseal.\r
871 \r
872 <p>If you have a SOCKS firewall and you are using\r
873 <strong>WinBoard</strong>, we now know how to make this configuration\r
874 work, complete with timestamp or timeseal!\r
875 \r
876 <p>Start by getting SocksCap32.  This software is freely available\r
877 from <a href="http://www.socks.nec.com/">http://www.socks.nec.com/</a>.\r
878 Install it on your machine, read the documentation, and learn to use\r
879 it.  You may find it useful with many other programs besides WinBoard.\r
880 \r
881 <p>Next, <strong>don't</strong> socksify WinBoard.  Socksifying\r
882 WinBoard itself doesn't let you use it with timestamp or timeseal.\r
883 For some reason I don't understand -- something strange that\r
884 SocksCap32 does -- the socksified WinBoard runs but does nothing, and\r
885 timestamp/timeseal runs all by itself in its own window.\r
886 \r
887 <p>Instead, use the following workaround.  Follow the instructions\r
888 exactly; don't try to skip steps or simplify things.\r
889 \r
890 <p>First, make SocksCap32 application profiles for timestamp and\r
891 timeseal.  Use the following command lines in the SocksCap32\r
892 profiles. Name the first profile "timestamp" and the second\r
893 "timeseal".\r
894 \r
895 <p><pre>\r
896     "c:\program files\winboard\timestamp.exe" chessclub.com 5000 -p 5000\r
897     "c:\program files\winboard\timeseal.exe" freechess.org 5000 -p 5000\r
898 </pre>\r
899 \r
900 <p>Second, run timestamp or timeseal by itself, socksified, using its\r
901 profile.  This will open an unneeded, black window that will not\r
902 respond to typing.  Minimize it to the task bar and ignore it. It will\r
903 go away when you exit from WinBoard.\r
904   \r
905 <p>Next, run WinBoard using the following command line.  Make a shortcut\r
906 or type this command into an MS-DOS Prompt box.  Don't run WinBoard\r
907 itself socksified, just run it directly.\r
908 \r
909 <p><pre>\r
910     "c:\program files\winboard.exe" /ics /icshost=localhost /icsport=5000\r
911 </pre>\r
912 \r
913 <p>After you get this working, you can try getting the timestamp window to\r
914 auto-minimize by starting it from a shortcut instead of from the\r
915 SocksCap32 control window. As it says in the SocksCap32 help file, put\r
916 the following in the Target field of a shortcut's Properties page:\r
917 \r
918 <p><pre>\r
919     "c:\program files\sockscap32\sc32.exe" timestamp\r
920 </pre>\r
921 \r
922 Then select "Run: Minimized" on the same page.  Do the same for timeseal.\r
923 \r
924 <p>Another method that can work is to use a .bat file to start both\r
925 timestamp and WinBoard.  It would look something like this:\r
926 \r
927 <p><pre>\r
928     REM --\r
929     REM -- icc.bat\r
930     REM -- Start timestamp under SocksCap32 and use WinBoard to connect to it.\r
931     REM -- The string "timestamp" refers to a SocksCap32 profile for timestamp.\r
932     REM --  Do not change it to the filename of the timestamp program!\r
933     REM --\r
934     start /minimized "c:\program files\sockscap32\sc32.exe" timestamp\r
935     cd "c:\program files\winboard"\r
936     winboard /ics /icshost=localhost /icsport=5000\r
937 </pre>\r
938 \r
939 <p>This workaround has a problem if you want to run two copies of\r
940 WinBoard at once, talking to the same chess server twice (for\r
941 bughouse) or to two different chess servers. If you need to do that,\r
942 you will need to run a separate copy of timestamp with <i>a different\r
943 port number</i> for each connection.  You'll need to make a second set of\r
944 profile entries with a different value after the -p flag (say, 5001)\r
945 and you'll need to change the WinBoard command line /icsport=5000 for\r
946 the second WinBoard to match.\r
947 \r
948 <HR>\r
949 <H3><A NAME="[B.20]">[B.20] \r
950 How can I use XBoard or WinBoard on chess.net with accuclock?\r
951 </A></H3>\r
952 \r
953 <p>I believe chess.net provides a Win32 command-line version of\r
954 accuclock that will work with WinBoard.  Please see the documentation\r
955 on the chess.net server itself; don't ask the author of WinBoard.\r
956 \r
957 <p>I don't know whether chess.net provides versions of accuclock for\r
958 Unix at this time.  Ask them.\r
959 \r
960 <hr>\r
961 <h3><a name="[B.21]">[B.21]\r
962   Can I get Zippy to do one or more ICS commands automatically at the \r
963   start or end of each game?</a></h3>\r
964 \r
965 <p>By default, Zippy automatically sends the command "gameend" to ICS\r
966 at the end of each game.  You can alias this command (using the ICS\r
967 "alias" feature) to anything you want.  On ICC, you can use the\r
968 "multi" feature to alias gameend to several commands, but other\r
969 servers don't have that feature.  Zippy doesn't send anything at the\r
970 start of the game by default.\r
971 \r
972 <p>You can get Zippy to send one or more commands of your choosing, at\r
973 the start and/or end of each game, by using the -zippyGameStart and\r
974 -zippyGameEnd command line options, newly added in version 4.0.3.\r
975 Both xboard and WinBoard have (somewhat obscure) ways of getting\r
976 newlines into this option to send several commands.  Here is an\r
977 example of one way to do it for each.\r
978 \r
979 <p><pre>\r
980     xboard -ics -zp -xrm '*zippyGameStart: say hi\nsay prepare to die\n'\r
981 \r
982     WinBoard /ics /zp /zippyGameEnd='say thanks\nseek 5 0\nseek 2 12\n'\r
983 </pre>\r
984 \r
985 <hr>\r
986 <h3><a name="[B.22]">[B.22]\r
987   How do I print from WinBoard?\r
988 </a></h3>\r
989 \r
990 WinBoard does not have built-in printing functionality.\r
991 If you want to print a picture of the board, press Alt+PrintScrn, run the\r
992 standard Windows application Paintbrush, select Paste, and print from there.\r
993 If you want to print a list of moves, save your game as a PGN file,\r
994 then open the PGN file with Notepad or any other plain text editor and\r
995 print it from there.\r
996 \r
997 <hr>\r
998 <h3><a name="[B.23]">[B.23]\r
999   Can I get Zippy to automatically reconnect to ICS when its connection \r
1000   breaks?</a></h3>\r
1001 \r
1002 <p>There isn't a perfect solution to this problem yet, but a pretty\r
1003 good one is to write a shell script (for xboard) or .bat script (for\r
1004 WinBoard) that automatically restarts the program whenever it exits.\r
1005 Use the -xexit flag so that you don't get a popup dialog that must be\r
1006 dismissed with the OK button before the program will exit.  The gap in\r
1007 this solution is that your connection to ICS can sometimes get into a\r
1008 state where the program does not notice that the connection is broken\r
1009 until the next time it tries to send a command.  Perhaps some future\r
1010 version of xboard/WinBoard will have an option to send a harmless\r
1011 command every five minutes or so.\r
1012 \r
1013 <p>Anyway, here is a sample Windows .bat file that restarts WinBoard each\r
1014 time it exits.  Thanks to Jason Williamson.  It assumes that you have put\r
1015 your computer account's name and password in a file named logon.ini.\r
1016 \r
1017 <pre>\r
1018 REM --\r
1019 REM -- wbrecon.bat\r
1020 REM -- Start WinBoard in Zippy mode, and restart it each time it exits.\r
1021 REM -- Add or change parameters as needed for your application.\r
1022 REM --\r
1023 :loop\r
1024 start /w winboard /zp /ics /icslogon logon.ini /xexit /xautoraise\r
1025 REM -- The next line is to have a short delay setup for 139 seconds.\r
1026 REM -- Leave it out if it doesn't work on the version of Windows you use.\r
1027 TYPE NUL | CHOICE.COM /N /CY /TY,99 &gt;NUL\r
1028 goto loop\r
1029 </pre>\r
1030 \r
1031 <p>Here is a Unix shell script to do the same thing for xboard.\r
1032 It's a bit more elaborate.  It is based on the script I use for the\r
1033 original Zippy.  It logs all ICS output to a file named zippy.out,\r
1034 and it lets you type commands to Zippy by running "cat &gt; zippy.fifo".\r
1035 \r
1036 <pre>\r
1037 #! /bin/sh\r
1038 host="204.178.125.65 -icsport 5000 -telnet -telnetProgram timestamp"\r
1039 #host="164.58.253.13 -icsport 5000 -telnet -telnetProgram timeseal"\r
1040 out=zippy.out\r
1041 fifo=zippy.fifo\r
1042 ZIPPYPASSWORD='something'\r
1043 export ZIPPYPASSWORD\r
1044 ZIPPYPASSWORD2='orother'\r
1045 export ZIPPYPASSWORD2\r
1046 ZIPPYLINES=`pwd`/all.lines\r
1047 export ZIPPYLINES\r
1048 ZIPPYGAMEEND='say Yow, that was FUN!\r
1049 gameend'\r
1050 export ZIPPYGAMEEND\r
1051 zippylogon=`pwd`/logon.ini\r
1052 DISPLAY=`hostname`:0.0\r
1053 export DISPLAY\r
1054 mv -f $out ${out}.old\r
1055 rm -f $fifo\r
1056 mkfifo $fifo\r
1057 pid=$$\r
1058 ( while [ true ] ; do cat -u $fifo ; done ) | \\r
1059       ( while [ true ] ; do\r
1060           xboard -iconic -ics -icshost $host \\r
1061                  -zt -zp -xbell -xanimate \\r
1062                  -xautosave -xquiet -fcp "gnuchessx -h" \\r
1063                  -icslogon $zippylogon -xexit -autoflag -xautoraise $*\r
1064           sleep 600\r
1065         done ) &gt; $out 2&gt;&amp;1 &amp;\r
1066 </pre>\r
1067 \r
1068 <hr>\r
1069 <h3><a name="[B.24]">[B.24]\r
1070   The chess engines are too strong and always beat me.  How can I adjust\r
1071   the difficulty level to make them weaker?</a></h3>\r
1072 \r
1073 <p>The simplest way to get that effect is to make sure the\r
1074 XBoard/WinBoard Auto Flag option is off, set a very fast time control\r
1075 so that the chess engine can't think for long, but take as much time\r
1076 over your own moves as you want. Also feel free to use Retract Move if\r
1077 you make a blunder.  \r
1078 \r
1079 <p>Many chess coaches will let you switch sides after\r
1080 they get a stronger position so that you can get experience playing\r
1081 positions where you are winning.  You can try this with XBoard/WinBoard\r
1082 by using the Machine White or Machine Black menu command to make the\r
1083 machine take over your position.\r
1084 \r
1085 <p>The -depth command-line option to XBoard/WinBoard can also be used to\r
1086 weaken the engine (see the man page or Help file).  It's a bit of a\r
1087 nuisance to set command line options in Windows, but see topic <A\r
1088 HREF="#[C.7]">[C.7]</A> for instructions.\r
1089 \r
1090 <p>Other ways of weakening engines are engine-specific.  Many of them\r
1091 let you adjust various parameters, and if you choose bad settings, the\r
1092 engine will play more poorly.  Consult whatever documentation came with\r
1093 the engine you are using.\r
1094 \r
1095 <hr>\r
1096 <h3><a name="[B.25]">[B.25]\r
1097   May I use the piece bitmaps from XBoard/WinBoard in my own program?</a></h3>\r
1098 \r
1099 <p>The piece bitmaps used in XBoard and WinBoard were designed by\r
1100 Elmar Bartel.  He released them under the <a\r
1101 href="http://www.gnu.org/copyleft/gpl.html">GNU General Public\r
1102 License</a>.  This means that if your program is also free software\r
1103 distributed under the GPL, you can use them freely.  If your program\r
1104 is distributed under some other license, including commercial,\r
1105 shareware, or non-GPL freeware, then you cannot use the bitmaps unless\r
1106 you obtain special permission from Elmar.  See the file README.bitmaps\r
1107 that comes with the XBoard and WinBoard source code for more\r
1108 information and an email address you can write to.\r
1109 \r
1110 <HR><H2><A NAME="[C]">[C] XBoard and WinBoard, bugs and problems</A></H2>\r
1111 \r
1112 <HR><H3><A NAME="[C.1]">[C.1] I can't build XBoard\r
1113 because the X11/Xaw/...  include files are not found.</A></H3>\r
1114 \r
1115 These are the header files for the Athena Widgets library, which XBoard uses\r
1116 heavily.  Some versions of Unix don't supply these files, but they are part of\r
1117 the standard X distribution, freely available from MIT.  \r
1118 \r
1119 <P>For general information on getting missing X sources, see the FAQ on\r
1120 comp.windows.x.  Note that you may be missing only the header files, or you\r
1121 may be missing the libraries themselves too.\r
1122 \r
1123 <P>HP-UX users are missing only the header files.  You can get them by\r
1124 anonymous FTP as follows.  (But first check with your system\r
1125 administrator to see if someone else at your site has already done\r
1126 this.)  Get the archive file /hpux9/X11R5/Core/Xaw-5.00.tar.gz (Xaw\r
1127 header files) via anonymous FTP from the site hpux.csc.liv.ac.uk\r
1128 (138.253.42.172), or one of the other official sites---Germany:\r
1129 hpux.ask.uni-karlsruhe.de (129.13.200.57), US: hpux.cae.wisc.edu\r
1130 (144.92.4.15), France: hpux.cict.fr (192.70.79.53) or Netherlands:\r
1131 hpux.ced.tudelft.nl (130.161.140.100). Unpack the archive using gzip\r
1132 and follow the instructions in its README and/or HPUX.Install files.\r
1133 Thanks to Richard Lloyd for this information.\r
1134 \r
1135 <P>If you have the Xaw header files installed in a different place\r
1136 than the other X11 headers, you may need to configure XBoard with an\r
1137 extra flag to help it find them.  For example, if yours are in\r
1138 /foo/bar/X11/Xaw, try this:\r
1139 \r
1140 <p><PRE>\r
1141     rm config.cache\r
1142     (setenv CFLAGS -I/foo/bar ; configure)\r
1143 </PRE>\r
1144 <P>\r
1145 Also see topic <A HREF="#[C.2]">[C.2]</A>.\r
1146 \r
1147 <HR>\r
1148 <H3><A NAME="[C.2]">[C.2] Configuring or building XBoard fails due to\r
1149 missing header files, missing libraries, or undefined symbols.\r
1150 </A></H3>\r
1151 \r
1152 Perhaps you have the X server and client programs installed on your\r
1153 machine, but not the X header files and link-time libraries.  If so,\r
1154 you can run existing X programs, but you cannot compile a new X\r
1155 program from source code.  In this case the XBoard configure script\r
1156 will fail and will tell you to look at this question in the FAQ.  Many\r
1157 GNU/Linux distributions put the headers and libraries in a separate\r
1158 package, which you might not have installed.  If you are using RedHat,\r
1159 install the XFree86-devel package.  If you are using some other\r
1160 kind of Unix, ask your system administrator where to find the X header\r
1161 files and link-time libraries.  If this is not your problem, read on.\r
1162 \r
1163 <p>The configure script for XBoard looks for X libraries and header\r
1164 files in some common places.  Sometimes it fails: If yours are\r
1165 installed in an odd place, it may not find them at all.  If you have\r
1166 more than one version of X installed on your system, it may find the\r
1167 "wrong" one, or occasionally it may find libraries from one version\r
1168 and incompatible header files from another.  You can work around these\r
1169 problems by telling the configure script where the files are.  For\r
1170 example:\r
1171 \r
1172 <p><PRE>\r
1173     configure --x-includes=/odd/place/include \\r
1174               --x-libraries=/odd/place/lib\r
1175 </PRE>\r
1176 \r
1177 <P>The directory named in the argument to --x-includes must have a\r
1178 subdirectory "X11" that contains the actual .h files.  That is, if\r
1179 your X.h file has full pathname /odd/place/X11R6/include/X11/X.h, then\r
1180 you must give the argument --x-includes=/odd/place/X11R6/include.\r
1181 \r
1182 <P>Some linkers have bugs that cause bogus error messages when you try\r
1183 to link X programs.  The configure script includes a workaround for a\r
1184 bug of this kind that exists in some SunOS 4.x.x installations.  See\r
1185 the FAQ on comp.windows.x for more information about problems of this\r
1186 kind.\r
1187 \r
1188 <P>If all else fails, check whether anyone else at your site has been able to\r
1189 compile any X programs on your system.  Your X installation might be buggy.\r
1190 If so, the system administrator at your site might know how to fix or work\r
1191 around the problem.\r
1192 \r
1193 <P>Also see topic <A HREF="#[C.1]">[C.1]</A>.\r
1194 \r
1195 <HR><H3><A NAME="[C.3]">[C.3] I have problems using WinBoard on ICS\r
1196 with a modem.  I'm not running SLIP or PPP, but just dialing in to an\r
1197 ordinary login account ("shell account").</A></H3>\r
1198 \r
1199 Here are solutions to some common problems in this area.\r
1200 \r
1201 <P>Some people want to connect to ICS through HyperTerminal or some other\r
1202 terminal program first, then run WinBoard.  This is not how it works.\r
1203 WinBoard wants to talk directly with your modem, acting as a terminal program\r
1204 itself.  Start out with the modem "on hook" (not making a call).\r
1205 \r
1206 <P>Run WinBoard with a command line like this (adding more options if desired):\r
1207 \r
1208 <p><PRE>\r
1209     WinBoard /ics /icscom com1\r
1210 </PRE>\r
1211 \r
1212 Use com2, com3, or com4 in place of com1 if your modem is connected to one of\r
1213 those ports.\r
1214 \r
1215 <P>After you start WinBoard, you may need to change some of the options in the\r
1216 Communications dialog (on the Options menu).  The dialog has the usual options\r
1217 for talking to modems: bits per second, bits per byte, parity, number of stop\r
1218 bits.  You will probably want to use Save Settings Now when you're done.\r
1219 \r
1220 <P>Next, type dialing commands to your modem in the text window that WinBoard\r
1221 creates.  You may need to turn off Local Line Editing on the Options menu\r
1222 while you are typing commands to your modem.  Turn it back on when you're\r
1223 done.  See the WinBoard Help file for instructions if you see your typing\r
1224 echoed an extra time after you hit Enter.\r
1225 \r
1226 <HR>\r
1227 <H3><A NAME="[C.4]">[C.4]\r
1228 I have problems using WinBoard on ICS with Windows 95 and SLIP\r
1229 or PPP.  When trying to start up, it gets the error "Address family\r
1230 not supported by protocol family" (or some equally strange message).\r
1231 </A></H3>\r
1232 \r
1233 WinBoard is a 32-bit application, but some Winsock (TCP/IP) implementations\r
1234 support only 16-bit applications.  You get a strange looking error message\r
1235 if you try to use a 32-bit application because\r
1236 there is no standard Winsock error code number\r
1237 for "32-bit application not supported."\r
1238 \r
1239 <P>Microsoft TCP/IP works with both 16-bit and\r
1240 32-bit applications, supports SLIP, PPP, Ethernet, etc., and is included\r
1241 with Windows 95 and later Windows systems.\r
1242 If possible, I recommend that you uninstall\r
1243 whatever Winsock you are using and install Microsoft TCP/IP instead.\r
1244 For more information, see\r
1245 <A HREF=\r
1246 "http://walden.mo.net/~rymabry/95winfaq.html"\r
1247 >http://walden.mo.net/~rymabry/95winfaq.html (the Win95-L FAQ)</A>.\r
1248 \r
1249 <P>Trumpet Winsock 2.1 (and earlier) supports only 16-bit\r
1250 applications, and hence does not work with WinBoard.  But there is a\r
1251 beta-test release available that does support 32-bit applications.  \r
1252 I have not tried it with WinBoard, but it \r
1253 should work.  See Trumpet's Web page\r
1254 <A HREF=\r
1255 "http://www.trumpet.com.au/wsk/winsock.htm"\r
1256 >http://www.trumpet.com.au/wsk/winsock.htm</A>\r
1257 for more information.\r
1258 \r
1259 <P>The 16-bit versions of America On-Line's software do not support\r
1260 32-bit Winsock applications.  Get the 32-bit version.  At one time the\r
1261 32-bit version was called "AOL for Windows 95," but I imagine that has\r
1262 changed.  Hopefully the current versions are all 32-bit.\r
1263 \r
1264 <P>A few versions of Winsock may have bugs that prevent\r
1265 Windows timestamp/timeseal from working with them.  I'm not sure if\r
1266 such bugs exist in any versions that actually have 32-bit support,\r
1267 so this point might be moot.  Again, Microsoft TCP/IP is known to work.\r
1268 \r
1269 <HR><H3><A NAME="[C.5]">[C.5] When I try to run WinBoard, I get the\r
1270 message "Failed to start chess program gnuchess on localhost: NO\r
1271 LANGFILE (file gnuchess.lan not found)".</A></H3>\r
1272 \r
1273 <p>This message means that WinBoard is trying to run GNU Chess, but\r
1274 GNU Chess cannot find a file that it needs, named gnuchess.lan.\r
1275 If you see it, you've probably customized WinBoard's /fcp, /fd, /scp,\r
1276 and/or /sd options and made a mistake in the process.  Review what\r
1277 you did, and see the WinBoard help file.\r
1278 \r
1279 <HR>\r
1280 <H3><A NAME="[C.6]">[C.6] I want to use XBoard or WinBoard as an Internet\r
1281 Chess Server interface, but the ICS Client option is grayed out on the\r
1282 menu.</A></H3> \r
1283 \r
1284 XBoard and WinBoard have three major modes that can't be changed from the\r
1285 menus: local chess engine mode,\r
1286 ICS mode, and standalone mode.\r
1287 \r
1288 <p>With XBoard, you have to set the mode using command-line options.\r
1289 Local chess engine mode is the default, -ics selects ICS mode, and\r
1290 -ncp ("no chess program") selects standalone mode.\r
1291 \r
1292 <p>With WinBoard, if you don't set the mode using command-line\r
1293 options, you get a dialog box asking which mode you want.  To bypass\r
1294 the dialog box, use -cp ("chess program") for local chess engine mode,\r
1295 or -ics or -ncp as with XBoard.  Also see topic <A HREF="#[C.7]">[C.7]</A>.\r
1296 \r
1297 <HR>\r
1298 <H3><A NAME="[C.7]">[C.7] How do I give command-line options to\r
1299 a Windows program like WinBoard?</A></H3>\r
1300 \r
1301 <P>There are many ways; pick your favorite:\r
1302 \r
1303 <P><UL>\r
1304 <LI>Type the command line into an MS-DOS Prompt box.  Example:\r
1305 "WinBoard -ics".\r
1306 \r
1307 <LI>Make a Windows shortcut for WinBoard.  You can do this by\r
1308 right-dragging WinBoard.exe to the desktop and selecting "Create\r
1309 Shortcut(s) Here" from the menu that appears.  Right-click on the\r
1310 shortcut, select Properties, and click the Shortcut tab.  The\r
1311 command-line text box is labelled "Target" instead of "Command line"\r
1312 just to confuse you.  Edit the text in this box, adding the command\r
1313 line options to the end.</LI>\r
1314 \r
1315 <LI>Choose Run from the Start menu, or File / Run from the Program\r
1316 Manager or File Manager, and type the command line into the dialog you\r
1317 get.  You may have to give WinBoard's full drivespec and filename if\r
1318 it is not in a directory on your search path.</LI>\r
1319 \r
1320 <LI>Make a Program Manager icon for WinBoard.  You can do this by\r
1321 dragging WinBoard.exe from the File Manager into the Program Manager,\r
1322 or by using File / New in the Program Manager.  Select the icon and\r
1323 choose File / Properties.  Edit the Command Line text box to add the\r
1324 command-line options to the end.</LI>\r
1325 </UL>\r
1326 \r
1327 <HR>\r
1328 <H3><A NAME="[C.9]">[C.9]\r
1329 When I exit from WinBoard after using it to play against a chess\r
1330 program on my machine, the chess program keeps running in the background.\r
1331 </A></H3>\r
1332 \r
1333 <p>Be sure you have the current versions of WinBoard and the chess\r
1334 engine you are using.  WinBoard 3.4.1 and earlier had a bug that\r
1335 caused this problem to occur with all chess engines.  A buggy chess\r
1336 engine that does not respond to the "quit" command will also cause\r
1337 this.\r
1338 \r
1339 <p>If you still see this problem, you can stop the rogue chess engine\r
1340 by pressing Ctrl+Alt+Del, selecting the chess engine process from the\r
1341 menu, and pressing the End Task button.\r
1342 \r
1343 <hr>\r
1344 <h3><a name="[C.12]">[C.12]\r
1345 Why do my ICS \r
1346 opponents often get extra time after they make their moves?\r
1347 Why do I sometimes lose time off my clock after I make my move?\r
1348 </a></h3>\r
1349 \r
1350 If you are playing with the ICS incremental clock, both you and your\r
1351 opponent get a set amount of extra time after each move.\r
1352 \r
1353 <p>If your or your opponent has netlag, your opponent might appear to\r
1354 get extra time, especially if your opponent is using timestamp or\r
1355 timeseal.  The ICS charges each player who is using timestamp or\r
1356 timeseal only for the time between when the player received his\r
1357 opponent's move and the time he sent his own move.  Thus delays in\r
1358 network transmission do not count against either player.  But WinBoard\r
1359 counts down the display of your opponent's clock on your screen under\r
1360 the assumption that there is no netlag.  When his move comes in, if\r
1361 there was netlag, the ICS may not have really charged him for that\r
1362 much time, and WinBoard corrects the clock to what the ICS says it\r
1363 should read.\r
1364 \r
1365 <p>If you are not using timestamp or timeseal, you may appear to lose\r
1366 time off your clock at some point after you make your move.  In this\r
1367 case, the ICS charges you for the time between when it sent you your\r
1368 opponent's move and the time it received your move.  Thus delays in\r
1369 network transmission count against you.  WinBoard stops counting down\r
1370 the display of your clock on your screen (and starts your opponent's)\r
1371 when you make your move.  When the ICS echoes your move back to you, it\r
1372 may have charged you for more time than that, and WinBoard corrects\r
1373 the clocks to what the ICS says they should read.\r
1374 \r
1375 <p>See "help lag" and "help timestamp" or "help timeseal" on your ICS for\r
1376 more detailed information.\r
1377 \r
1378 <hr>\r
1379 <h3><a name="[C.13]">[C.13]\r
1380 I can't run WinBoard unless I delete the WinBoard.ini file each time!\r
1381 </a></h3>\r
1382 \r
1383 <p>Most people don't have this problem, but two or three people using\r
1384 Windows NT 4.0 with Service Pack 3 or 4 have reported it.  I have no\r
1385 idea what causes this problem.  Contrary to what was reported in a\r
1386 previous version of this FAQ, reinstalling the service pack after\r
1387 installing WinBoard does not seem to solve the problem.\r
1388 \r
1389 <hr>\r
1390 <h3><a name="[C.15]">[C.15]\r
1391 I get errors compiling XBoard's parser.c.\r
1392 </a></h3>\r
1393 \r
1394 <p>The file parser.c is automatically generated from parser.l.  The\r
1395 copy included with XBoard 4.0.2 was generated by lex on Tru64 Unix and\r
1396 has problems compiling and linking on current GNU/Linux versions.  The\r
1397 copy included with XBoard 4.0.3 was generated by flex on a GNU/Linux\r
1398 machine, but it too won't necessarily work on other versions of Unix.\r
1399 If you have this problem, you can fix it by deleting parser.c and\r
1400 letting the Makefile re-create it from parser.l.  This will work if\r
1401 you have either lex or flex on your system.  Flex is available in all\r
1402 GNU/Linux distributions and can be obtained at no charge from the Free\r
1403 Software Foundation, www.fsf.org.\r
1404 \r
1405 <hr>\r
1406 <h3><a name="[C.16]">[C.16]\r
1407 I get an error building WinBoard from source because "flex" is not found.\r
1408 </a></h3>\r
1409 \r
1410 <p>The file parser.c is automatically generated from parser.l.  The\r
1411 Makefile included with the WinBoard source kit has a rule for\r
1412 generating parser.c using the program "flex", which will fail if you\r
1413 don't have flex.  However, the source kit also includes a ready-made\r
1414 copy of parser.c, so you don't really need flex unless you have made\r
1415 changes to parser.l.  Check that you still have a copy of parser.c; if\r
1416 you don't, unpack the WinBoard source zip file again to get one.\r
1417 Either set the last-modified time of parser.c to be later than that of\r
1418 parser.l, delete parser.l, or comment out the Makefile rule for\r
1419 building parser.c from parser.l, and then try building WinBoard again.\r
1420 \r
1421 <p>If you do want to change parser.l and rebuild parser.c, you can get\r
1422 flex as part of the free Cygwin kit from \r
1423 <a href="http://sourceware.cygnus.com/cygwin/"\r
1424 >http://sourceware.cygnus.com/cygwin/</a>.  You can\r
1425 probably also get flex for Windows by itself from various other places\r
1426 around the Internet.  It is free software distributed by the Free\r
1427 Software Foundation, www.fsf.org.\r
1428 \r
1429 <hr>\r
1430 <h3><a name="[C.17]">[C.17]\r
1431   XBoard hangs shortly after connecting to an ICS when used with dxterm,\r
1432  cmdtool, dtterm, kterm, konsole, or other substitutes for xterm.\r
1433 </a></h3>\r
1434 \r
1435 <p>After connecting to a chess server, XBoard 4.0.2 and later sends an\r
1436 escape sequence to its terminal that is meant to display your handle\r
1437 and the ICS host name (for example, \r
1438 "user<a name="nospam">&#x40;</a>chessclub.com") in the\r
1439 terminal's banner and icon.  It seems that several of the alternative\r
1440 X terminal programs have a bug that makes them hang when sent this\r
1441 escape sequence.\r
1442 \r
1443 <p>You can work\r
1444 around the problem by using xterm, nxterm, rxvt, aterm, xiterm, or\r
1445 gnome-terminal, all of which seem to work fine.  In fact, current\r
1446 versions of kterm and konsole seem to work fine too, so if you are\r
1447 having problems with one of them, be sure you are not running an\r
1448 outdated version.  \r
1449 \r
1450 <p>Alternatively, you can disable this feature by commenting out the\r
1451 body of DisplayIcsInteractionTitle in xboard.c and recompling xboard.\r
1452 \r
1453 <hr>\r
1454 <h3><a name="[C.18]">[C.18]\r
1455   The WinBoard pieces show up in the wrong colors, appear distorted,\r
1456   or are not visible at all.\r
1457 </a></h3>\r
1458 \r
1459 <p>This can happen if you have a bug in your Windows display driver.\r
1460 Check with the manufacturer of your display card, the manufacturer of\r
1461 your computer, or Microsoft to see if there is an updated driver\r
1462 available.  You can usually download updated drivers from the Web.\r
1463 \r
1464 <p>If you can't find an updated driver, you can try running Windows\r
1465 using a different number of colors and/or disabling some of the\r
1466 hardware acceleration features on your display card.  To change the\r
1467 number of colors, go to Windows Start / Settings / Control Panel /\r
1468 Display / Settings / Color Palette.  To disable hardware acceleration\r
1469 features, go to Windows Start / Settings / Control Panel / Display /\r
1470 Settings / Advanced Properties / Performance / Hardware Acceleration.\r
1471 \r
1472 <p>It's also possible that Windows has the right driver for your\r
1473 hardware already but you are not using it.  It may help to reinstall\r
1474 your driver.  Go to Windows Start / Settings / Control Panel / System\r
1475 and delete your display card (maybe even your monitor too), then\r
1476 reboot.  Windows should automatically re-detect your card and monitor\r
1477 and re-install the drivers; if it doesn't, run Start / Settings /\r
1478 Control Panel / Add New Hardware to force it to.\r
1479 \r
1480 <p>If all else fails, try Monochrome mode.  On WinBoard's menus, go\r
1481 to Options / Color and check Monochrome.  WinBoard will display in black\r
1482 and white.\r
1483 \r
1484 <HR>\r
1485 <H3><A NAME="[C.19]">[C.19] XBoard or WinBoard tells me "Error: first chess\r
1486   program (...) exited unexpectedly".</A></H3>\r
1487 \r
1488 <p>This message means that your chess engine crashed, probably due to\r
1489 a bug in the engine, or because you have it configured incorrectly.\r
1490 You can try running XBoard or WinBoard again with the "-debug" flag on\r
1491 the command line.  This will print out all the messages received from\r
1492 the chess engine.  (With WinBoard, the messages go into a file called\r
1493 WinBoard.debug; with XBoard, they go to the xterm that you started\r
1494 XBoard from.)\r
1495 \r
1496 <P>If you are using GNU Chess and you see this problem as soon as it\r
1497 starts up, most likely GNU Chess is exiting with an error message.  If\r
1498 you see the message "NO LANGFILE", it means that you did not install\r
1499 GNU Chess correctly, and it is unable to find the file gnuchess.lang.\r
1500 Make sure that you defined LIBDIR in the gnuchess Makefile, and that\r
1501 gnuchess.lang is in that directory.  If gnuchess.lang is not there,\r
1502 you probably didn't type "make install" in the gnuchess src directory;\r
1503 you must do this to install gnuchess.lang (and the gnuchess book).  If\r
1504 you defined LIBDIR to something that is not an absolute pathname (that\r
1505 is, to something that does not start with a "/"), GNU Chess will work\r
1506 only if you run it from the GNU Chess "src" directory where you built\r
1507 it.\r
1508 \r
1509 <hr><h3><a name="[C.20]">[C.20]\r
1510   XBoard tells me "Warning: Cannot allocate colormap entry", or\r
1511   "too few colors available; trying monochrome mode", or\r
1512   "XPM pieces cannot be used in monochrome mode".\r
1513 </a></h3>\r
1514 \r
1515 <p>You are running your X server with 8-bit color depth, and you are running\r
1516 some program that has used up all 256 of your colors.  Netscape tends\r
1517 to do this, or maybe you have a background image that uses up all of\r
1518 your colors.\r
1519 \r
1520 <p>If you have a modern machine, you probably have enough display\r
1521 memory to run your X server with 16-, 24-, or 32-bit color depth.  If\r
1522 you're using "startx" to start the X server, try giving the command as\r
1523 "<tt>startx -- -bpp 24</tt>" (or 16, or 32).  On newer X servers you\r
1524 may have to use -depth instead of -bpp.  Further details on\r
1525 configuring your X server are beyond the scope of this FAQ.\r
1526 \r
1527 <p>If you must run in 8-bit mode, try the following:\r
1528 Avoid background images that use up all your colors.  If you\r
1529 run Netscape, try starting it up with the <tt>-install</tt> command-line\r
1530 option; this gives Netscape its own private colormap that X will\r
1531 switch to when Netscape has the keyboard focus.  \r
1532 \r
1533 <P>If all else fails, another possibility is to run xboard in\r
1534 monochrome (black and white) mode by giving it the <tt>-mono</tt>\r
1535 command-line option.  XBoard will try this by itself in some cases.\r
1536 Monochrome mode works only with bitmap pieces, not pixmap pieces, so\r
1537 trying to use it may give you the error "XPM pieces cannot be used in\r
1538 monochrome mode".  To get around this, either use the -bitmapDirectory\r
1539 command line option to point XBoard to the directory containing the\r
1540 bitmap pieces included with the XBoard source code, or rebuild XBoard\r
1541 with pixmap support disabled, using "./configure --disable-xpm ; make\r
1542 clean ; make".\r
1543 \r
1544 <hr><h3><a name="[C.21]">[C.21]\r
1545   When I log in to freechess.org, the Enter key doesn't work, and I \r
1546   have to use Ctrl+J instead.  But when I use WinBoard, Ctrl+J doesn't\r
1547   work either, so I'm stuck.\r
1548 </a></h3>\r
1549 \r
1550 <p>This is a pretty rare problem.  It should only arise if you have to\r
1551 reach freechess.org by telnetting (or connecting with WinBoard\r
1552 /icsport=23) from a Windows PC to a Unix box, and then telnetting from\r
1553 there to freechess.org.  The Enter key should always work when\r
1554 connecting directly from your PC to freechess.org.\r
1555 \r
1556 <p>The best way to get around the problem is to run timeseal on the\r
1557 intermediate Unix box instead of telnet.  Get the appropriate version\r
1558 of timeseal for your box from ftp.freechess.org and follow the\r
1559 directions in the help files on FICS.\r
1560 \r
1561 <p>If you can't run timeseal for some reason, there are some things\r
1562 you can do to make telnet stay in line mode instead of going to\r
1563 character mode.  Then the Enter key will work.  First, try "telnet\r
1564 freechess.org 5000" instead of "telnet freechess.org."\r
1565 If that still doesn't work, then when the Enter key stops working,\r
1566 type the following.  Here <tt>&lt;</tt> and <tt>&gt;</tt> surround the\r
1567 names of keys.\r
1568 \r
1569 <p><pre>\r
1570     &lt;Ctrl+S&gt;&lt;Ctrl+]&gt;mode line&lt;Enter&gt;\r
1571 </pre>\r
1572 \r
1573 <hr><h3><a name="[C.22]">[C.22]\r
1574   XBoard says, "Failed to start first chess program gnuchessx\r
1575   on localhost: gnuchessx: No such file or directory."\r
1576 </a></h3>\r
1577 \r
1578 <p>XBoard is looking for GNU Chess 4.0.  If you didn't want to use\r
1579 XBoard with GNU Chess, please see topic <A HREF="#[C.6]">[C.6]</A>.\r
1580 If you did want to use GNU Chess 4.0, be sure you have it installed and\r
1581 that it is on your $PATH.  If you wanted to use GNU Chess 5 instead,\r
1582 see topic <A HREF="#[D.6]">[D.6]</A>.\r
1583 \r
1584 <HR>\r
1585 <H2><A NAME="[D]">[D] Crafty and other topics</A></H2>\r
1586 <HR>\r
1587 <H3><A NAME="[D.1]">[D.1] What is XChess?</A></H3>\r
1588 \r
1589 XChess is an older chessboard program that is no longer supported.  XChess was\r
1590 written for X version 10, and you may or may not be able to build and run it\r
1591 on an X11 system.\r
1592 \r
1593 <P>XChess has only one significant feature that is not present in XBoard: Two\r
1594 humans can play chess using XChess on different machines, without using the\r
1595 Internet Chess Server as an intermediary.  This feature is of interest only if\r
1596 you don't have network connectivity to the Internet Chess Server.\r
1597 \r
1598 <P>Note: There actually have been several different programs called "XChess" in\r
1599 circulation at various times.  The above describes one that was associated\r
1600 with GNU Chess.\r
1601 \r
1602 <HR>\r
1603 <H3><A NAME="[D.2]">[D.2] What is Winsock Chess?</A></H3>\r
1604 \r
1605 Winsock Chess is a program that lets two people play chess across a\r
1606 network.  It runs only under Microsoft Windows.  Some of the code in\r
1607 Winsock Chess is derived from GNU Chess, but it is not maintained by\r
1608 the GNU Chess team.  You can get a copy from the Internet Chess\r
1609 Library; see topic <A HREF="#[A.2]">[A.2]</A>.  For more information,\r
1610 contact its author, Donald Munro, \r
1611 ccahdm<a name="nospam">&#x40;</a>beluga.upe.ac.za.\r
1612 \r
1613 <HR>\r
1614 <H3><A NAME="[D.3]">[D.3] What is Crafty?</A></H3>\r
1615 \r
1616 Crafty is a freely-available chess program written by Bob Hyatt.  \r
1617 Bob is the main author of the well-known chess program Cray\r
1618 Blitz.  Crafty is a very strong program, its code is available, commented\r
1619 and fairly readable, and its author is actively working on improvements.\r
1620 \r
1621 <p>You can download Crafty from <a\r
1622 href="ftp://ftp.cis.uab.edu/pub/hyatt/"\r
1623 >ftp://ftp.cis.uab.edu/pub/hyatt/</a>.  Start by getting the <a\r
1624 href="ftp://ftp.cis.uab.edu/pub/hyatt/read.me" >read.me</a> file and\r
1625 reading it.  Among other things, this file contains instructions on\r
1626 how to install Crafty as a command-line application on your machine.\r
1627 \r
1628 <p>There is a Crafty mailing list.\r
1629 To subscribe, send email to \r
1630 majordomo<a name="nospam">&#x40;</a>cis.uab.edu, with \r
1631 "subscribe crafty-list" in the body.\r
1632 \r
1633 <HR>\r
1634 <H3><A NAME="[D.4]">[D.4] How do I use Crafty with XBoard?</A></H3>\r
1635 \r
1636 <p>First, you need to get Crafty and install it as a command-line\r
1637 application on your machine.  See topic <A HREF="#[D.3]">[D.3]</A>.\r
1638 \r
1639 <p>To use Crafty with XBoard, give the -fcp\r
1640 parameter like this:\r
1641 \r
1642 <p><PRE>\r
1643     xboard -fcp "./crafty" -fd <I>crafty_directory</I>\r
1644 </PRE>\r
1645 \r
1646 Here <I>crafty_directory</I> is the directory where you installed Crafty.\r
1647 You can add more xboard options at the end of the command line.\r
1648 \r
1649 <p>Crafty 15.14 or later is required to work properly with XBoard\r
1650 4.0.0 or later.  We generally recommend using the latest versions of\r
1651 both XBoard and Crafty.\r
1652 \r
1653 <HR>\r
1654 <H3><A NAME="[D.5]">[D.5] How do I use Crafty with WinBoard?</A></H3>\r
1655 \r
1656 <p>First, you need to get Crafty and install it as a command-line\r
1657 application on your machine.  See topic <A HREF="#[D.3]">[D.3]</A>.\r
1658 It is best to use the latest version of Crafty with the latest version\r
1659 of WinBoard to make sure all features are compatible and function\r
1660 correctly.  You can install Crafty in any directory you like.\r
1661 \r
1662 <p>You also need to get WinBoard and install it in the normal way\r
1663 using its built-in installer.  You can do that either before or after\r
1664 you install Crafty.\r
1665 \r
1666 <p>After both Crafty and WinBoard are installed separately, follow the\r
1667 directions in the WinBoard Help file (included with WinBoard) for\r
1668 connecting new chess engines to WinBoard.\r
1669 \r
1670 <p>If you want to have Crafty act as an automated computer player on a\r
1671 chess server, see topic <A HREF="#[B.16]">[B.16]</A>.  Before you try\r
1672 to get that working, be sure you can play against Crafty locally,\r
1673 first without WinBoard, then with it.  Also be sure you can use\r
1674 WinBoard to play on the chess server yourself, without having Crafty\r
1675 connected to it.  You have to crawl before you can walk!\r
1676 \r
1677 <HR>\r
1678 <H3><A NAME="[D.6]">[D.6] How do I use GNU Chess 5 with XBoard?</A></H3>\r
1679 \r
1680 <p>By default, XBoard still tries to use GNU Chess 4 by running the\r
1681 command "gnuchessx".  That's why if you don't have GNU Chess 4, you\r
1682 get the error message "Failed to start first chess program gnuchessx\r
1683 on localhost: gnuchessx: No such file or directory."\r
1684 \r
1685 <p>If you have GNU Chess 5, the command should be "gnuchess xboard"\r
1686 instead.  To make XBoard use this command, give the -fcp parameter\r
1687 like this:\r
1688 \r
1689 <p><PRE>\r
1690     xboard -fd <I>gnuchess_directory</I> -fcp "./gnuchess xboard" \r
1691 </PRE>\r
1692 \r
1693 Here <I>gnuchess_directory</I> is the directory where you installed\r
1694 GNU Chess 5 and its book.  You can add more xboard options at the\r
1695 end of the command line.\r
1696 \r
1697 <p><HR>\r
1698 $Id: FAQ.html,v 2.2 2003/11/28 09:35:21 mann Exp $<br>\r
1699 ** End of XBoard/WinBoard FAQ **\r
1700 </BODY></HTML>\r