Article View: gnu.chess
Article #52784.0 p62: bugs?
From: Ulrich Windl
Date: Tue, 30 Nov 1993 09:24
Date: Tue, 30 Nov 1993 09:24
44 lines
2922 bytes
2922 bytes
I have compiled GNU chess 4.0 p62 on my PC using djgpp (GNU C). I have found
some obvious bugs:
gnuchess tried to do a fopen(NULL) when searching for the ASCII book; it then
checks the result of the fopen. This causes a segmentation fault. (found in
main.c).
checkbook says the first move in the gnuchess.bk1 is illegal, but does not say
why. bincheck also does not work correctly.
I've created a hashfile (~250kB), but it's all zeroes. gnuchess does not touch
it.
Having looked at the misc/gnuchess.lang file, I've noticed several problems:
There are messages that should (must) be of a fixed size; some should not be
translated (otherwise the saved files from one language can't be read into
one using a different language).
I suggest to structure the language file appropriately. Id also suggest to
implement a "position-independent printf" for different languages.
Example: piprintf("%{1}4d moves in %{2}4.1f seconds\n", moves, seconds)
Similar to the shell "{1}" means the first printf-argument, and so on...
It also seems to be a good idea to print a message for every 50 openings
processed (when building the binary opening library) rather than every 1000
consumed entries (it takes a VERY LONG TIME on slow machines). And coming to the end it takes longer and longer... (having put >12000 openings in my file)
----------------------------------------
Ulrich Windl
Universitaet Regensburg, Rechenzentrum DV-med
Franz-Josef-Strauss-Allee 11
D-93042 Regensburg, Germany
---
SMTP: c9524@rrzc1.rz.uni-regensburg.de (Sun, my favorite)
SMTP: uw@rklnw1.ngate.uni-regensburg.de (PC, Pegasus Mail, upcoming power)
X.400: ulrich.windl@rrzc1.rz.uni-regensburg.d400.de (the higher force)
X.400: ulrich.windl@rkls1.klinik.uni-regensburg.d400.de (the higher force)
--
----------------------------------------
Ulrich Windl
Universitaet Regensburg, Rechenzentrum DV-med
Franz-Josef-Strauss-Allee 11
D-93042 Regensburg, Germany
---
SMTP: c9524@rrzc1.rz.uni-regensburg.de (Sun, my favorite)
SMTP: uw@rklnw1.ngate.uni-regensburg.de (PC, Pegasus Mail, upcoming power)
X.400: ulrich.windl@rrzc1.rz.uni-regensburg.d400.de (the higher force)
X.400: ulrich.windl@rkls1.klinik.uni-regensburg.d400.de (the higher force)
Technical Details
Message-ID:
<C9524.93Nov30092408@rrzc1a.uni-regensburg.de>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!xlink.net!fauern!uni-regensburg.de!news.uni-regensburg.de!c9524Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,7d2192c9db27710,start X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 1993-11-30 01:17:29 PST Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!xlink.net!fauern!uni-regensburg.de!news.uni-regensburg.de!c9524 From: c9524@rrzc1a.uni-regensburg.de (Ulrich Windl) Newsgroups: gnu.chess Subject: 4.0 p62: bugs? Date: 30 Nov 93 09:24:08 Organization: University of Regensburg, Germany Lines: 44 Distribution: world Message-ID: <C9524.93Nov30092408@rrzc1a.uni-regensburg.de> Reply-To: Ulrich Windl <c9524@rrzc1.rz.uni-regensburg.de> NNTP-Posting-Host: rrzc1.rz.uni-regensburg.de