ZCT 3.2442 by Zach Wegner - JA Windows builds available

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

User avatar
Zach Wegner
Posts: 1922
Joined: Thu Mar 09, 2006 12:51 am
Location: Earth

Re: ZCT 3.2442 by Zach Wegner - JA > a fix

Post by Zach Wegner »

GenoM wrote:Strange, is it only on my PC ZCT is hanging in memory eating CPU resources after the game ends? Another problem: under Arena 1.1 I failed to run 2cpu-version...

PS:
there is the same problem (without hanging in memory) with Jim's builds of 22.1th Crafty too... :(
Hard to say what is happening with the hanging, unless it is SMP and the engine is still loaded (the idle processors will sit there waiting for work, taking up CPU time). Under my tests (if you disregard the few bugs that I have recently added and then fixed), using Xboard and non-SMP, ZCT has been 100% stable and well behaved.

Post a logfile if you could.
User avatar
GenoM
Posts: 910
Joined: Wed Mar 08, 2006 9:46 pm
Location: Plovdiv, Bulgaria

Re: ZCT 3.2442 by Zach Wegner - JA > a fix

Post by GenoM »

Zach Wegner wrote:Hard to say what is happening with the hanging, unless it is SMP and the engine is still loaded (the idle processors will sit there waiting for work, taking up CPU time).
Yes it's SMP version that hangs.
Image
take it easy :)
F. Bluemers
Posts: 868
Joined: Thu Mar 09, 2006 11:21 pm
Location: Nederland

Re: ZCT 3.2442 by Zach Wegner - JA > sample game

Post by F. Bluemers »

Zach Wegner wrote:Thanks for the compiler output, Fonzy. It did help me catch a couple subtle bugs, but nothing pertaining to bookmaking. I saw that you had some more bookmaking output before between debug mode and release, and then edited it out. Could you post that again, or something like it? That looked like a genuine bug...
this one?:

Code: Select all

ZCT Version 0.3.2443 JA the supplied compile from JA

EgbbProbe failed to load! egbbdll.dll
Trying opening book test.zbk... successful.
trans hash size set to 128M
qsearch hash size set to 1M
pawn hash size set to 16M
eval hash size set to 2M
(zct)1. bookc gm2001.pgn 0 14 0
Usage: bookc pgn_file book_file min_play max_depth win_percent
(zct)1. bookc gm2001.pgn test.zbk 0 14 0
26476 games loaded.
Allocating book buffer of 370664 positions...
Dumping positions to book... 1 positions written.
(zct)1. bookc gm2001.pgn test.zbk 1 14 0
26476 games loaded.
Allocating book buffer of 370664 positions...
Dumping positions to book... 1 positions written.
(zct)1. bookc gm2001.pgn test.zbk 1 15 0
26476 games loaded.
Allocating book buffer of 397140 positions...
Dumping positions to book... 1 positions written.
(zct)1. bookc gm2001.pgn test.zbk 1 20 0
26476 games loaded.
Allocating book buffer of 529520 positions...
Dumping positions to book... 1 positions written.

(zct)31. ZCT Version 0.3.2443 JA,This one is the debug version.

EgbbProbe failed to load! egbbdll.dll
(zct)1. bookc gm2001.bin 0 14 0
Usage: bookc pgn_file book_file min_play max_depth win_percent
(zct)1. bookc gm2001.bin test.zbk 0 14 0
gm2001.bin: file not found.
(zct)1. bookc gm2001.pgn test.zbk 0 14 0
26476 games loaded.
Allocating book buffer of 370664 positions...
Dumping positions to book... 9817 positions written.
(zct)9. bookc gm2001.pgn test.zbk 1 14 0
26476 games loaded.
Allocating book buffer of 370664 positions...
Dumping positions to book... 9817 positions written.
(zct)9. bookc gm2001.pgn test.zbk 1 15 0
26476 games loaded.
Allocating book buffer of 397140 positions...
Dumping positions to book... 9817 positions written.
(zct)9. bookc gm2001.pgn test.zbk 1 20 0
26476 games loaded.
Allocating book buffer of 529520 positions...
Dumping positions to book... 22622 positions written.
(zct)12. 
The intel compilation doesn't run too well on an amd opteron it seems.
Best
Fonzy
F. Bluemers
Posts: 868
Joined: Thu Mar 09, 2006 11:21 pm
Location: Nederland

Re: ZCT 3.2442 by Zach Wegner - getting closer

Post by F. Bluemers »

While stepping in debug mode I noticed that the pgn moves were just skipped.
The line "notation coord" in zct.ini does not work.
It has to be "notation coordinates" else it treats input as SAN.

Code: Select all

ZCT Version 0.3.2443 JA

EgbbProbe failed to load! egbbdll.dll
Trying opening book gm2001_t.zbk... successful.
trans hash size set to 128M
qsearch hash size set to 1M
pawn hash size set to 16M
eval hash size set to 2M
(zct)1. bookp
e4: games=1 winp=100.0%
(zct)1. e2e4
e6: games=2 winp=100.0%
c5: games=2 winp=50.0%
(zct)1... e6
(zct)2. bookp
(zct)2. bookc gm2001.pgn gm2001_t.zbk 1 99 0
26476 games loaded.
Allocating book buffer of 2621124 positions...
Dumping positions to book... 174354 positions written.

(zct)31. bookl gm2001_t.zbk
Trying opening book gm2001_t.zbk... successful.
(zct)31. bookp
(zct)31. easy
(zct)31. new
(zct)1. bookp
(zct)1. easy
(zct)1. e2e4
b6: games=10 winp=20.0%
c6: games=446 winp=65.4%
d6: games=283 winp=43.1%
e6: games=608 winp=51.3%
g6: games=125 winp=32.8%
c5: games=279 winp=57.0%
d5: games=122 winp=33.6%
e5: games=123 winp=66.3%
Nc6: games=6 winp=41.7%
Nf6: games=90 winp=40.6%
(zct)1... c6
(zct)2. bookp
(zct)2. d2d4
d5: games=598 winp=41.1%
(zct)2... d5
(zct)3. 
looks a lot better now,but no lines for white?
minor edit to kill a compiler warning:

Code: Select all

#include "zct.h"
#include "functions.h"
#include "globals.h"
#ifdef ZCT_WINDOWS
#include <time.h>
#endif
#ifdef ZCT_POSIX
#include <sys/time.h>
#endif
Best
Fonzy
User avatar
Zach Wegner
Posts: 1922
Joined: Thu Mar 09, 2006 12:51 am
Location: Earth

Re: ZCT 3.2442 by Zach Wegner - getting closer

Post by Zach Wegner »

F. Bluemers wrote:While stepping in debug mode I noticed that the pgn moves were just skipped.
The line "notation coord" in zct.ini does not work.
It has to be "notation coordinates" else it treats input as SAN.
Hehe, actually the reverse is true. When it's in coord mode, I realize it won't read PGNs correctly because it's looking for coordinate moves. I suppose this is a bug and I should switch to SAN mode when reading PGNs. But if you put "coordinates" it won't recognize it and continue in SAN mode. It will still accept coordinate moves from pawns (as they don't require a piece specifier in SAN), but you can see that it prints moves in SAN.

Also, you don't need to use that line anymore, it was a bug workaround for UCI mode. Of course you still can if you like coord input.

Code: Select all

ZCT Version 0.3.2443 JA

EgbbProbe failed to load! egbbdll.dll
Trying opening book gm2001_t.zbk... successful.
trans hash size set to 128M
qsearch hash size set to 1M
pawn hash size set to 16M
eval hash size set to 2M
&#40;zct&#41;1. bookp
e4&#58; games=1 winp=100.0%
&#40;zct&#41;1. e2e4
e6&#58; games=2 winp=100.0%
c5&#58; games=2 winp=50.0%
&#40;zct&#41;1... e6
&#40;zct&#41;2. bookp
&#40;zct&#41;2. bookc gm2001.pgn gm2001_t.zbk 1 99 0
26476 games loaded.
Allocating book buffer of 2621124 positions...
Dumping positions to book... 174354 positions written.

&#40;zct&#41;31. bookl gm2001_t.zbk
Trying opening book gm2001_t.zbk... successful.
&#40;zct&#41;31. bookp
&#40;zct&#41;31. easy
&#40;zct&#41;31. new
&#40;zct&#41;1. bookp
&#40;zct&#41;1. easy
&#40;zct&#41;1. e2e4
b6&#58; games=10 winp=20.0%
c6&#58; games=446 winp=65.4%
d6&#58; games=283 winp=43.1%
e6&#58; games=608 winp=51.3%
g6&#58; games=125 winp=32.8%
c5&#58; games=279 winp=57.0%
d5&#58; games=122 winp=33.6%
e5&#58; games=123 winp=66.3%
Nc6&#58; games=6 winp=41.7%
Nf6&#58; games=90 winp=40.6%
&#40;zct&#41;1... c6
&#40;zct&#41;2. bookp
&#40;zct&#41;2. d2d4
d5&#58; games=598 winp=41.1%
&#40;zct&#41;2... d5
&#40;zct&#41;3. 
looks a lot better now,but no lines for white?
That does look strange. The move statistics look off. I'll check it out sometime soon.
minor edit to kill a compiler warning:

Code: Select all

#include "zct.h"
#include "functions.h"
#include "globals.h"
#ifdef ZCT_WINDOWS
#include <time.h>
#endif
#ifdef ZCT_POSIX
#include <sys/time.h>
#endif
Best
Fonzy
Fixed.
User avatar
Zach Wegner
Posts: 1922
Joined: Thu Mar 09, 2006 12:51 am
Location: Earth

Re: ZCT 3.2442 by Zach Wegner - getting closer

Post by Zach Wegner »

The book bugs are fixed, and ZCT now accepts unlimited input.

Source updated at SF.
User avatar
Zach Wegner
Posts: 1922
Joined: Thu Mar 09, 2006 12:51 am
Location: Earth

Re: ZCT 3.2442 by Zach Wegner - JA > a fix

Post by Zach Wegner »

GenoM wrote: Yes it's SMP version that hangs.
Hmm.. I don't know what is going on there. Probably something to do with the Windows-Unix compatibility stuff. I guess it is running under Cygwin? In any case, it is just not killing the child processes.
F. Bluemers
Posts: 868
Joined: Thu Mar 09, 2006 11:21 pm
Location: Nederland

Re: ZCT 3.2442 by Zach Wegner - getting closer

Post by F. Bluemers »

Zach Wegner wrote:The book bugs are fixed, and ZCT now accepts unlimited input.

Source updated at SF.
thanks :!:
applied a little fix in input.c getln():
realloc(buffer, size);=>buffer=realloc(buffer, size);
in globals.h extern char *input_buffer;//[BUFSIZ];
and the fix in http://64.68.157.89/forum/viewtopic.php ... dee0071057

Code: Select all

EgbbProbe failed to load! egbbdll.dll
Trying opening book gm2001_t.zbk... gm2001_t.zbk&#58; file not found.
trans hash size set to 128M
qsearch hash size set to 1M
pawn hash size set to 16M
eval hash size set to 2M
&#40;zct&#41;1. bookc gm2001.pgn gm2001.zbk 3 15 45
26476 games loaded.
Allocating book buffer of 397140 positions...
Dumping positions to book... 6361 positions written.
&#40;zct&#41;9. bookl gm2001.zbk
Trying opening book gm2001.zbk... successful.
&#40;zct&#41;9. new
&#40;zct&#41;1. bookp
b3&#58; games=19 winp=55.3%
g3&#58; games=134 winp=54.9%
c4&#58; games=565 winp=43.5%
d4&#58; games=398 winp=69.1%
e4&#58; games=300 winp=35.7%
f4&#58; games=6 winp=58.3%
Nf3&#58; games=212 winp=37.5%
&#40;zct&#41;1. exit
Best
Fonzy[/url]