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