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 > sample game

Post by Zach Wegner »

F. Bluemers wrote:I think the max_depth is not working as one might expect:

Code: Select all

(zct)1. bookc result58.pgn 1 1 0
Usage: bookc pgn_file book_file min_play max_depth win_percent
(zct)1. bookc result58.pgn test.zbk 1 1 0
240 games loaded.
Allocating book buffer of 240 positions...
Dumping positions to book... 1 positions written.
(zct)2. bookc result58.pgn test.zbk 0 1 0
240 games loaded.
Allocating book buffer of 240 positions...
Dumping positions to book... 1 positions written.
(zct)2. bookc result58.pgn test.zbk 0 1 100
240 games loaded.
Allocating book buffer of 240 positions...
Dumping positions to book... 0 positions written.
(zct)2. bookc result58.pgn test.zbk 0 1 55
240 games loaded.
Allocating book buffer of 240 positions...
Dumping positions to book... 0 positions written.
(zct)2. bookc result58.pgn test.zbk 0 1 20
240 games loaded.
Allocating book buffer of 240 positions...
Dumping positions to book... 1 positions written.
(zct)2. bookc result58.pgn test.zbk 0 1 10
240 games loaded.
Allocating book buffer of 240 positions...
Dumping positions to book... 1 positions written.
(zct)2. bookc result58.pgn test.zbk 0 1 1
240 games loaded.
Allocating book buffer of 240 positions...
Dumping positions to book... 1 positions written.
(zct)2. bookc result58.pgn test.zbk 0 1 0
240 games loaded.
Allocating book buffer of 240 positions...
Dumping positions to book... 1 positions written.
(zct)2. bookc result58.pgn test.zbk 1 1 0
240 games loaded.
Allocating book buffer of 240 positions...
Dumping positions to book... 1 positions written.
(zct)2. bookc result58.pgn test.zbk 2 1 0
240 games loaded.
Allocating book buffer of 240 positions...
Dumping positions to book... 1 positions written.
(zct)2. bookc result58.pgn test.zbk 0 111 0
240 games loaded.
Allocating book buffer of 26640 positions...
Dumping positions to book... 4593 positions written.
1-0 {White mates}
(zct)47... bookc result58.pgn test.zbk 0 1110 0
240 games loaded.
Allocating book buffer of 266400 positions...
Dumping positions to book... 5977 positions written.
1-0 {White mates}
(zct)47... bookc result58.pgn test.zbk 0 11100 0
240 games loaded.
Allocating book buffer of 2664000 positions...
Dumping positions to book... 5977 positions written.
1-0 {White mates}
(zct)47... 
Best
Fonzy
Looks OK to me. There are no games deeper than 1110 plies in your file, so setting it to 11100 gets the same amount of positions (which means there are 5977 different positions total in the PGN, besides the opening position). Maybe the first few commands should write more than one position... Setting win_percent to 100 will most likely not get any moves at all, as you can see. Also, setting min_play to anything below 1 is meaningless (it is the same as using 1).

Is there something else I'm missing?

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

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

Post by Zach Wegner »

Dr.Wael Deeb wrote:Hi Zach,
Whenever there is a good release version,buzz me and leave the opening book issue for me....just send me the instructions what exactly to do 8-)
Sounds good, I'll have to add some better book making utilities. I need support for notations (like ??), and a way to merge books, which should be easy.

However, I'm not going to be working much on ZCT for the next week or so, I really need to focus on the final stretch of my school year...
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:
Is there something else I'm missing?

Zach
My fault:
I noticed now,there are differences between the compiled versions
from JA and one i created myself,JA's version doesn't work correct the opteron i used to testbook creation

However even in any created book,I still can't get 1.e4 or 1.d4 in.

Recompiling also generated warning on conversions of BITBOARD(loss of precision)

Best
Fonzy
User avatar
Dr.Wael Deeb
Posts: 9773
Joined: Wed Mar 08, 2006 8:44 pm
Location: Amman,Jordan

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

Post by Dr.Wael Deeb »

Zach Wegner wrote:
Dr.Wael Deeb wrote:Hi Zach,
Whenever there is a good release version,buzz me and leave the opening book issue for me....just send me the instructions what exactly to do 8-)
Sounds good, I'll have to add some better book making utilities. I need support for notations (like ??), and a way to merge books, which should be easy.

However, I'm not going to be working much on ZCT for the next week or so, I really need to focus on the final stretch of my school year...
Take your time,and yes,I was talking about a good utility as I will garantee the pgn file quality 8-)
_No one can hit as hard as life.But it ain’t about how hard you can hit.It’s about how hard you can get hit and keep moving forward.How much you can take and keep moving forward….
User avatar
Zach Wegner
Posts: 1922
Joined: Thu Mar 09, 2006 12:51 am
Location: Earth

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

Post by Zach Wegner »

F. Bluemers wrote:My fault:
I noticed now,there are differences between the compiled versions
from JA and one i created myself,JA's version doesn't work correct the opteron i used to testbook creation

However even in any created book,I still can't get 1.e4 or 1.d4 in.

Recompiling also generated warning on conversions of BITBOARD(loss of precision)

Best
Fonzy
Strange, I'm not sure why it would give warnings with BITBOARDs, they aren't used in bookmaking at all. Were the warnings in book.c? Can you send me the warning? I'll investigate some more in the next couple days...
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 »

sorry,not in book.c , it was meant in general

Code: Select all

1>------ Rebuild All started: Project: zct_fb, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'zct_fb', configuration 'Debug|Win32'
1>Compiling...
1>bit.c
1>c:\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\bit.c(224) : warning C4101: 'bb_temp_2' : unreferenced local variable
1>c:\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\bit.c(265) : warning C4244: '=' : conversion from 'BITBOARD' to 'unsigned int', possible loss of data
1>c:\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\bit.c(325) : warning C4244: 'return' : conversion from 'BITBOARD' to 'int', possible loss of data
1>c:\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\bit.c(335) : warning C4244: 'initializing' : conversion from 'BITBOARD' to 'unsigned int', possible loss of data
1>c:\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\bit.c(346) : warning C4244: 'initializing' : conversion from 'BITBOARD' to 'unsigned int', possible loss of data
1>book.c
1>check.c
1>cmd.c
1>c:\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\cmd.c(152) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
1>cmdan.c
1>cmddbg.c
1>cmddef.c
1>c:\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\cmddef.c(330) : warning C4244: 'function' : conversion from 'BITBOARD' to 'int', possible loss of data
1>c:\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\cmddef.c(334) : warning C4244: '=' : conversion from 'BITBOARD' to 'unsigned int', possible loss of data
1>c:\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\cmddef.c(340) : warning C4244: '=' : conversion from 'BITBOARD' to 'unsigned int', possible loss of data
1>c:\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\cmddef.c(346) : warning C4244: '=' : conversion from 'BITBOARD' to 'unsigned int', possible loss of data
1>cmduci.c
1>cmdxb.c
1>debug.c
1>eval.c
1>gen.c
1>globals.c
1>hash.c
1>c&#58;\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\hash.c&#40;204&#41; &#58; warning C4018&#58; '<' &#58; signed/unsigned mismatch
1>init.c
1>c&#58;\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\init.c&#40;131&#41; &#58; warning C4244&#58; 'function' &#58; conversion from 'BITBOARD' to 'int', possible loss of data
1>c&#58;\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\init.c&#40;209&#41; &#58; warning C4244&#58; '=' &#58; conversion from '__w64 int' to 'PIECE', possible loss of data
1>initeval.c
1>input.c
1>c&#58;\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\input.c&#40;109&#41; &#58; warning C4244&#58; '=' &#58; conversion from '__w64 int' to 'PIECE', possible loss of data
1>c&#58;\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\input.c&#40;142&#41; &#58; warning C4244&#58; '=' &#58; conversion from '__w64 int' to 'PIECE', possible loss of data
1>c&#58;\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\input.c&#40;164&#41; &#58; warning C4244&#58; '=' &#58; conversion from '__w64 int' to 'SQ_RANK', possible loss of data
1>c&#58;\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\input.c&#40;171&#41; &#58; warning C4244&#58; '=' &#58; conversion from '__w64 int' to 'SQ_FILE', possible loss of data
1>c&#58;\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\input.c&#40;177&#41; &#58; warning C4244&#58; '=' &#58; conversion from '__w64 int' to 'PIECE', possible loss of data
1>make.c
1>output.c
1>c&#58;\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\output.c&#40;303&#41; &#58; warning C4101&#58; 'move_list' &#58; unreferenced local variable
1>perft.c
1>c&#58;\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\perft.c&#40;109&#41; &#58; warning C4244&#58; '=' &#58; conversion from 'BITBOARD' to 'int', possible loss of data
1>Generating Code...
1>Compiling...
1>pgn.c
1>ponder.c
1>print.c
1>c&#58;\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\print.c&#40;247&#41; &#58; warning C4018&#58; '<' &#58; signed/unsigned mismatch
1>c&#58;\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\print.c&#40;250&#41; &#58; warning C4267&#58; '=' &#58; conversion from 'size_t' to 'int', possible loss of data
1>probe.c
1>rand.c
1>search.c
1>searchroot.c
1>searchu.c
1>see.c
1>c&#58;\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\see.c&#40;71&#41; &#58; warning C4146&#58; unary minus operator applied to unsigned type, result still unsigned
1>select.c
1>c&#58;\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\select.c&#40;215&#41; &#58; warning C4018&#58; '>' &#58; signed/unsigned mismatch
1>smp.c
1>smp2.c
1>test.c
1>time.c
1>c&#58;\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\time.c&#40;62&#41; &#58; warning C4013&#58; 'clock' undefined; assuming extern returning int
1>tune.c
1>c&#58;\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\tune.c&#40;45&#41; &#58; warning C4101&#58; 'value_1' &#58; unreferenced local variable
1>c&#58;\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\tune.c&#40;43&#41; &#58; warning C4101&#58; 'winner' &#58; unreferenced local variable
1>c&#58;\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\tune.c&#40;44&#41; &#58; warning C4101&#58; 'match_move' &#58; unreferenced local variable
1>c&#58;\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\tune.c&#40;46&#41; &#58; warning C4101&#58; 'value_2' &#58; unreferenced local variable
1>c&#58;\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\tune.c&#40;157&#41; &#58; warning C4244&#58; '=' &#58; conversion from 'double' to 'float', possible loss of data
1>c&#58;\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\tune.c&#40;159&#41; &#58; warning C4244&#58; '=' &#58; conversion from 'BITBOARD' to 'VALUE', possible loss of data
1>c&#58;\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\tune.c&#40;112&#41; &#58; warning C4101&#58; 'range' &#58; unreferenced local variable
1>c&#58;\documents and settings\fonzy\mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\tune.c&#40;113&#41; &#58; warning C4101&#58; 'lower_bound' &#58; unreferenced local variable
1>unmake.c
1>verify.c
1>zct.c
1>Generating Code...
1>Compiling manifest to resources...
1>Linking...
1>Embedding manifest...
1>Build log was saved at "file&#58;//c&#58;\Documents and Settings\Fonzy\Mijn documenten\ant\zct-32443_ja\zct-32443_ja\src\32443\Debug\BuildLog.htm"
1>zct_fb - 0 error&#40;s&#41;, 33 warning&#40;s&#41;
========== Rebuild All&#58; 1 succeeded, 0 failed, 0 skipped ==========
Fonzy
F. Bluemers
Posts: 868
Joined: Thu Mar 09, 2006 11:21 pm
Location: Nederland

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

Post by F. Bluemers »

A small fix else it would crash after dumping info

Code: Select all

void sprint_&#40;char *string, int max_length, char *text, va_list args&#41;
&#123;
	int length;
	char temp&#91;BUFSIZ&#93;;
	char fmt&#91;8*10&#93;;//fix

Code: Select all

EgbbProbe failed to load! egbbdll.dll
&#40;zct&#41;1. go
Time&#58; &#40;us=5&#58;00 them=5&#58;00&#41; soft=4.687 hard=18.748
Depth          Time     Score   PV &#40;nodes&#41;
  7/11        0.156     +0.25   1. d4 Nf6 2. Nf3 d5 3. Nc3 Nc6 4. Bf4 &#40;11534&#41;
&#91; 7/11&#93;       0.187     +0.25   1. d4 Nf6 2. Nf3 d5 3. Nc3 Nc6 4. Bf4 &#40;13927&#41;
  8/15        0.250     +0.10   1. d4 Nf6 2. Nf3 d5 3. Nc3 Nc6 4. Bf4 Bf5 &#40;18342&#41;
&#91; 8/17&#93;       0.703     +0.10   1. d4 Nf6 2. Nf3 d5 3. Nc3 Nc6 4. Bf4 Bf5 &#40;53144&#41;
  9/19        0.843     +0.10   1. d4 Nf6 2. Nf3 d5 3. Nc3 Nc6 4. Bf4 Bf5 5. e3 &#40;63251&#41;
&#91; 9/19&#93;       1.187     +0.10   1. d4 Nf6 2. Nf3 d5 3. Nc3 Nc6 4. Bf4 Bf5 5. e3 &#40;91091&#41;
 10/19        1.453     +0.10   1. d4 Nf6 2. Nf3 d5 3. Nc3 Nc6 4. Bf4 Bf5 5. e3 e6 &#40;110690&#41;
&#91;10/19&#93;       2.031     +0.10   1. d4 Nf6 2. Nf3 d5 3. Nc3 Nc6 4. Bf4 Bf5 5. e3 e6 &#40;156472&#41;
 11/19        3.156     +0.11   1. d4 Nf6 2. Nf3 d5 3. Nc3 Bf5 4. Bf4 Nc6 5. e3H e6H 6. Bd3H &#40;233394&#41;
&#91;11/21&#93;       4.687     +0.11   1. d4 Nf6 2. Nf3 d5 3. Nc3 Bf5 4. Bf4 Nc6 5. e3H e6H 6. Bd3H &#40;335144&#41;
crash would occur here&#58;-->
search&#58; nodes=335144 q=71.9% time=4.687 nps=71505
        fail highs=39747      pv nodes=128        fail lows=9699      
        fh first=92.1%        pv first=78.1%
ext&#58;    check=2535 one-rep=105 threat=2 passed-pawn=13
hash&#58;   hits=40.5% cutoffs=18.0% full=62.7% pawn=82.8% eval=10.0% qsearch=22.0%

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 »

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... :(
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 > a fix

Post by F. Bluemers »

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... :(
SMP does not work yet
I'm also not sure how well it will behave on amd's

http://www.talkchess.com/forum/viewtopi ... 9fbf6b98ed
User avatar
Zach Wegner
Posts: 1922
Joined: Thu Mar 09, 2006 12:51 am
Location: Earth

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

Post by Zach Wegner »

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...