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 Windows builds available

Post by Zach Wegner »

Jim Ablett wrote: Hi Zach,

There is a problem in 'cmd.c' . I see you made some changes here, but it causes the windows build to crash when run >
OK, I just rewrote that function because the old one was from some old BSD code, and I wasn't sure if I could GPL it. Simple fix, just put *string instead of string on the first line where it checks if its NULL.
1. Occasionally engine choses to play opponents move instead of it's own.
2. Some time control problems. Over 40 moves engine started playing moves instantly.
1. is strange, maybe another input bug. Is ponder on? Do you have a log of any examples?
2. I think I don't have all of the time control parsing implemented in "go", so I imagine it thinks it has 0 time. I'll investigate.
2. Forced ZCT to play in uci mode.
This is very strange if it is necessary to make it work. You are setting the protocol to UCI, but you don't call initialize_cmds(), so it will continue parsing input against the default protocol. Maybe try sending me a logfile with and without it?
User avatar
Jim Ablett
Posts: 1449
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: ZCT 3.2442 by Zach Wegner - JA Windows builds available

Post by Jim Ablett »

Zach Wegner wrote:
Jim Ablett wrote: Hi Zach,

There is a problem in 'cmd.c' . I see you made some changes here, but it causes the windows build to crash when run >
OK, I just rewrote that function because the old one was from some old BSD code, and I wasn't sure if I could GPL it. Simple fix, just put *string instead of string on the first line where it checks if its NULL.
1. Occasionally engine choses to play opponents move instead of it's own.
2. Some time control problems. Over 40 moves engine started playing moves instantly.
1. is strange, maybe another input bug. Is ponder on? Do you have a log of any examples?
2. I think I don't have all of the time control parsing implemented in "go", so I imagine it thinks it has 0 time. I'll investigate.
2. Forced ZCT to play in uci mode.
This is very strange if it is necessary to make it work. You are setting the protocol to UCI, but you don't call initialize_cmds(), so it will continue parsing input against the default protocol. Maybe try sending me a logfile with and without it?
Here's the end of the log where ZCT plays illegal move. This is ponder off - uci mode. This is first game I just played to get a log. It looks like a ponder bug, but game is played ponder off.

Code: Select all

position startpos moves d2d4 g8f6 g1f3 b7b6 b1c3 c8b7 c1f4 e7e6 a2a3 f8e7 h2h3 e8g8 e2e3 c7c5 f1d3 b7f3 d1f3 b8c6 d4d5 e6d5 c3d5 f6d5 f3d5 b6b5 d3f5 d8a5 e1e2 a8d8 e2f3 a5b6 f5d7 c6b8 f4b8 b6b8 d5c6 a7a6 a1d1 b8a7 d7f5 f8e8 g2g3 e7f6 c2c3 e8f8 d1d8 f8d8 f5c8 a6a5 h1d1 d8f8 d1d7 a7b8 c8b7 b8e8 c6b5 e8e5 f3g2 f8d8 b7d5 d8d7 b5d7 e5e7 d7b5 e7f8 b5a5 f6e7 a5a7 e7d6 d5c4 f8e8 c4d5 d6e7 e3e4 g8h8 e4e5 e8f8 h3h4 h8g8 d5c4 f8d8 e5e6 f7e6 c4e6 g8h8 a7b7 e7f6 e6d5 d8f8 g2h3 f8e8 b7c7 e8f8 c7d7 f8b8 h3g2 b8f8
go wtime 75992 btime 65551 winc 0 binc 0 movestogo 32
info depth 6 seldepth 11 score cp 485 time 31 nodes 10065 pv d7b7
info depth 7 seldepth 11 score cp 468 time 31 nodes 11632 pv d7b7 f8e8
info depth 7 seldepth 13 score cp 469 time 297 nodes 78952 pv g2h1 f8b8
info depth 7 seldepth 14 score cp 469 time 360 nodes 87843 pv g2h1 f8b8
info depth 8 seldepth 20 score cp 452 time 500 nodes 138198 pv g2h1 f6d8 h1g1 f8e7 d7e7 d8e7 d5e4 c5c4
info depth 8 seldepth 20 score cp 452 time 1063 nodes 335229 pv g2h1 f6d8 h1g1 f8e7 d7e7 d8e7 d5e4 c5c4
info depth 9 seldepth 20 score cp 452 time 1188 nodes 370221 pv g2h1 f6d8 h1g1 f8e7 d7e7 d8e7 d5e4 c5c4
bestmove g2h1 ponder f6d8
position startpos moves d2d4 g8f6 g1f3 b7b6 b1c3 c8b7 c1f4 e7e6 a2a3 f8e7 h2h3 e8g8 e2e3 c7c5 f1d3 b7f3 d1f3 b8c6 d4d5 e6d5 c3d5 f6d5 f3d5 b6b5 d3f5 d8a5 e1e2 a8d8 e2f3 a5b6 f5d7 c6b8 f4b8 b6b8 d5c6 a7a6 a1d1 b8a7 d7f5 f8e8 g2g3 e7f6 c2c3 e8f8 d1d8 f8d8 f5c8 a6a5 h1d1 d8f8 d1d7 a7b8 c8b7 b8e8 c6b5 e8e5 f3g2 f8d8 b7d5 d8d7 b5d7 e5e7 d7b5 e7f8 b5a5 f6e7 a5a7 e7d6 d5c4 f8e8 c4d5 d6e7 e3e4 g8h8 e4e5 e8f8 h3h4 h8g8 d5c4 f8d8 e5e6 f7e6 c4e6 g8h8 a7b7 e7f6 e6d5 d8f8 g2h3 f8e8 b7c7 e8f8 c7d7 f8b8 h3g2 b8f8 g2h1 f6
e7
go wtime 74732 btime 63275 winc 0 binc 0 movestogo 31
bestmove f6d8          // illegal move - JA
quit
Jim.
User avatar
Zach Wegner
Posts: 1922
Joined: Thu Mar 09, 2006 12:51 am
Location: Earth

Re: ZCT 3.2442 by Zach Wegner - JA Windows builds available

Post by Zach Wegner »

Jim Ablett wrote:
Zach Wegner wrote:
Jim Ablett wrote: Hi Zach,

There is a problem in 'cmd.c' . I see you made some changes here, but it causes the windows build to crash when run >
OK, I just rewrote that function because the old one was from some old BSD code, and I wasn't sure if I could GPL it. Simple fix, just put *string instead of string on the first line where it checks if its NULL.
1. Occasionally engine choses to play opponents move instead of it's own.
2. Some time control problems. Over 40 moves engine started playing moves instantly.
1. is strange, maybe another input bug. Is ponder on? Do you have a log of any examples?
2. I think I don't have all of the time control parsing implemented in "go", so I imagine it thinks it has 0 time. I'll investigate.
2. Forced ZCT to play in uci mode.
This is very strange if it is necessary to make it work. You are setting the protocol to UCI, but you don't call initialize_cmds(), so it will continue parsing input against the default protocol. Maybe try sending me a logfile with and without it?
Here's the end of the log where ZCT plays illegal move. This is ponder off - uci mode. This is first game I just played to get a log. It looks like a ponder bug, but game is played ponder off.

Code: Select all

position startpos moves d2d4 g8f6 g1f3 b7b6 b1c3 c8b7 c1f4 e7e6 a2a3 f8e7 h2h3 e8g8 e2e3 c7c5 f1d3 b7f3 d1f3 b8c6 d4d5 e6d5 c3d5 f6d5 f3d5 b6b5 d3f5 d8a5 e1e2 a8d8 e2f3 a5b6 f5d7 c6b8 f4b8 b6b8 d5c6 a7a6 a1d1 b8a7 d7f5 f8e8 g2g3 e7f6 c2c3 e8f8 d1d8 f8d8 f5c8 a6a5 h1d1 d8f8 d1d7 a7b8 c8b7 b8e8 c6b5 e8e5 f3g2 f8d8 b7d5 d8d7 b5d7 e5e7 d7b5 e7f8 b5a5 f6e7 a5a7 e7d6 d5c4 f8e8 c4d5 d6e7 e3e4 g8h8 e4e5 e8f8 h3h4 h8g8 d5c4 f8d8 e5e6 f7e6 c4e6 g8h8 a7b7 e7f6 e6d5 d8f8 g2h3 f8e8 b7c7 e8f8 c7d7 f8b8 h3g2 b8f8
go wtime 75992 btime 65551 winc 0 binc 0 movestogo 32
info depth 6 seldepth 11 score cp 485 time 31 nodes 10065 pv d7b7
info depth 7 seldepth 11 score cp 468 time 31 nodes 11632 pv d7b7 f8e8
info depth 7 seldepth 13 score cp 469 time 297 nodes 78952 pv g2h1 f8b8
info depth 7 seldepth 14 score cp 469 time 360 nodes 87843 pv g2h1 f8b8
info depth 8 seldepth 20 score cp 452 time 500 nodes 138198 pv g2h1 f6d8 h1g1 f8e7 d7e7 d8e7 d5e4 c5c4
info depth 8 seldepth 20 score cp 452 time 1063 nodes 335229 pv g2h1 f6d8 h1g1 f8e7 d7e7 d8e7 d5e4 c5c4
info depth 9 seldepth 20 score cp 452 time 1188 nodes 370221 pv g2h1 f6d8 h1g1 f8e7 d7e7 d8e7 d5e4 c5c4
bestmove g2h1 ponder f6d8
position startpos moves d2d4 g8f6 g1f3 b7b6 b1c3 c8b7 c1f4 e7e6 a2a3 f8e7 h2h3 e8g8 e2e3 c7c5 f1d3 b7f3 d1f3 b8c6 d4d5 e6d5 c3d5 f6d5 f3d5 b6b5 d3f5 d8a5 e1e2 a8d8 e2f3 a5b6 f5d7 c6b8 f4b8 b6b8 d5c6 a7a6 a1d1 b8a7 d7f5 f8e8 g2g3 e7f6 c2c3 e8f8 d1d8 f8d8 f5c8 a6a5 h1d1 d8f8 d1d7 a7b8 c8b7 b8e8 c6b5 e8e5 f3g2 f8d8 b7d5 d8d7 b5d7 e5e7 d7b5 e7f8 b5a5 f6e7 a5a7 e7d6 d5c4 f8e8 c4d5 d6e7 e3e4 g8h8 e4e5 e8f8 h3h4 h8g8 d5c4 f8d8 e5e6 f7e6 c4e6 g8h8 a7b7 e7f6 e6d5 d8f8 g2h3 f8e8 b7c7 e8f8 c7d7 f8b8 h3g2 b8f8 g2h1 f6
e7
go wtime 74732 btime 63275 winc 0 binc 0 movestogo 31
bestmove f6d8          // illegal move - JA
quit
Jim.
It's a buffer overflow. I suppose BUFSIZ is only 512 bytes on Windows. This could be a simple fix for just increasing the buffer size, but I'd like to elegantly handle any size buffer as well as any amount of arguments. I'll see what I can do later today.

And C++ guys, I don't want to hear it. ;)
User avatar
Jim Ablett
Posts: 1449
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: ZCT 3.2442 by Zach Wegner - JA Windows builds available

Post by Jim Ablett »

Zach Wegner wrote:
Jim Ablett wrote: Hi Zach,

There is a problem in 'cmd.c' . I see you made some changes here, but it causes the windows build to crash when run >
OK, I just rewrote that function because the old one was from some old BSD code, and I wasn't sure if I could GPL it. Simple fix, just put *string instead of string on the first line where it checks if its NULL.
1. Occasionally engine choses to play opponents move instead of it's own.
2. Some time control problems. Over 40 moves engine started playing moves instantly.
1. is strange, maybe another input bug. Is ponder on? Do you have a log of any examples?
2. I think I don't have all of the time control parsing implemented in "go", so I imagine it thinks it has 0 time. I'll investigate.
2. Forced ZCT to play in uci mode.
This is very strange if it is necessary to make it work. You are setting the protocol to UCI, but you don't call initialize_cmds(), so it will continue parsing input against the default protocol. Maybe try sending me a logfile with and without it?

Right, here are the logs for loading ZCT into ChessBase.
First the fixed one with forced uci mode and fixed id which works:

Code: Select all

ZCT Version 0.3.2443 JA

EgbbProbe failed to load! egbbdll.dll
Trying opening book book.zbk... successful.
trans hash size set to 32M
qsearch hash size set to 1M
pawn hash size set to 1M
eval hash size set to 2M
uci
id name ZCT0.3.2443 JA
id author Zach Wegner
uciok
isready
readyok
position startpos
setoption name MultiPV value 1
go infinite
info depth 7 seldepth 11 score cp 25 time 63 nodes 11534 pv d2d4 g8f6 g1f3 d7d5 b1c3 b8c6 c1f4
info depth 7 seldepth 11 score cp 25 time 79 nodes 13927 pv d2d4 g8f6 g1f3 d7d5 b1c3 b8c6 c1f4
info depth 8 seldepth 15 score cp 10 time 94 nodes 18338 pv d2d4 g8f6 g1f3 d7d5 b1c3 b8c6 c1f4 c8f5
info depth 8 seldepth 17 score cp 10 time 219 nodes 53267 pv d2d4 g8f6 g1f3 d7d5 b1c3 b8c6 c1f4 c8f5
info depth 9 seldepth 19 score cp 10 time 266 nodes 63263 pv d2d4 g8f6 g1f3 d7d5 b1c3 b8c6 c1f4 c8f5 e2e3
info depth 9 seldepth 19 score cp 10 time 344 nodes 90907 pv d2d4 g8f6 g1f3 d7d5 b1c3 b8c6 c1f4 c8f5 e2e3
info depth 10 seldepth 19 score cp 10 time 407 nodes 109116 pv d2d4 g8f6 g1f3 d7d5 b1c3 b8c6 c1f4 c8f5 e2e3 e7e6
info depth 10 seldepth 19 score cp 10 time 532 nodes 154609 pv d2d4 g8f6 g1f3 d7d5 b1c3 b8c6 c1f4 c8f5 e2e3 e7e6
info depth 11 seldepth 19 score cp 11 time 782 nodes 228881 pv d2d4 g8f6 g1f3 d7d5 b1c3 c8f5 c1f4 b8c6
info depth 11 seldepth 20 score cp 11 time 1313 nodes 383832 pv d2d4 g8f6 g1f3 d7d5 b1c3 c8f5 c1f4 b8c6
info depth 12 seldepth 20 score cp 11 time 1704 nodes 503992 pv d2d4 g8f6 g1f3 d7d5 b1c3 c8f5 c1f4 b8c6 e2e3 e7e6 f1d3 f5d3 d1d3
info depth 12 seldepth 22 score cp 11 time 2610 nodes 785090 pv d2d4 g8f6 g1f3 d7d5 b1c3 c8f5 c1f4 b8c6 e2e3 e7e6 f1d3 f5d3 d1d3
stop
info depth 13 seldepth 23 score cp 11 time 4219 nodes 1170246 pv d2d4 g8f6 g1f3 d7d5 b1c3 c8f5 c1f4 b8c6 e2e3 e7e6 f1d3 f5d3 d1d3
bestmove d2d4 ponder g8f6
position startpos moves e2e4
bestmove d2d4 ponder g8f6
setoption name MultiPV value 1
go infinite
info depth 9 seldepth 18 score cp 27 time 62 nodes 16038 pv e7e5
info depth 10 seldepth 18 score cp 28 time 62 nodes 16805 pv e7e5
info depth 10 seldepth 18 score cp 28 time 94 nodes 27612 pv e7e5
info depth 11 seldepth 18 score cp 28 time 94 nodes 29069 pv e7e5
info depth 11 seldepth 18 score cp 28 time 156 nodes 48469 pv e7e5
position startpos moves e2e4
info depth 12 seldepth 26 score cp 28 time 4625 nodes 460165 pv e7e5
bestmove e7e5
setoption name MultiPV value 1
go infinite
stop
bestmove a7a6
position startpos moves e2e4
bestmove a7a6
setoption name MultiPV value 1
go infinite
info depth 8 seldepth 15 score cp -20 time 1437 nodes 12965 pv b8c6 b1c3 e7e5 g1f3
info depth 8 seldepth 15 score cp -20 time 1718 nodes 27656 pv b8c6 b1c3 e7e5 g1f3
info depth 9 seldepth 15 score cp -20 time 1812 nodes 31410 pv b8c6 b1c3 e7e5 g1f3
info depth 9 seldepth 16 score cp -20 time 1968 nodes 54765 pv b8c6 b1c3 e7e5 g1f3
info depth 10 seldepth 19 score cp -26 time 2687 nodes 108795 pv b8c6 d2d4 g8f6 b1c3 e7e5 d4e5 c6e5 c1e3 f8d6 g1f3
info depth 10 seldepth 19 score cp -20 time 3828 nodes 217238 pv e7e5 g1f3
info depth 10 seldepth 19 score cp -20 time 3828 nodes 217238 pv e7e5 g1f3
info depth 11 seldepth 19 score cp -20 time 3922 nodes 217494 pv e7e5 g1f3
info depth 11 seldepth 19 score cp -20 time 5406 nodes 384170 pv e7e5 g1f3
info depth 12 seldepth 22 score cp -20 time 5609 nodes 435906 pv e7e5 g1f3
info depth 12 seldepth 22 score cp -20 time 6937 nodes 805309 pv e7e5 g1f3
info depth 13 seldepth 24 score cp -18 time 8547 nodes 1314494 pv e7e5 g1f3 b8c6 b1c3 g8f6 f1b5 f8d6 d2d3 b7b6 c1e3 c8b7 e1d2 e8g8
info depth 13 seldepth 24 score cp -18 time 11703 nodes 2302891 pv e7e5 g1f3 b8c6 b1c3 g8f6 f1b5 f8d6 d2d3 b7b6 c1e3 c8b7 e1d2 e8g8
info depth 14 seldepth 26 score cp -19 time 18578 nodes 4361394 pv e7e5 g1f3 b8c6 b1c3 g8f6 f1b5 f8d6 d2d3 b7b6 c1e3 c8b7 e1d2 e8g8 b5c4
info depth 14 seldepth 26 score cp -19 time 25468 nodes 6477697 pv e7e5 g1f3 b8c6 b1c3 g8f6 f1b5 f8d6 d2d3 b7b6 c1e3 c8b7 e1d2 e8g8 b5c4
info depth 15 seldepth 29 score cp -25 time 37484 nodes 9955531 pv e7e5 g1f3 b8c6 b1c3 g8f6 d2d4 e5d4 f3d4 f8b4 d4c6 d7c6 d1d8 e8d8 c1g5 c8e6 f1e2
quit
info depth 15 seldepth 29 score cp -25 time 39109 nodes 10411196 pv e7e5 g1f3 b8c6 b1c3 g8f6 d2d4 e5d4 f3d4 f8b4 d4c6 d7c6 d1d8 e8d8 c1g5 c8e6 f1e2
bestmove e7e5 ponder g1f3
And now the unmodified standard version which doesn't work:

Code: Select all

ZCT Version 0.3.2443 JA

EgbbProbe failed to load! egbbdll.dll
Trying opening book book.zbk... successful.
trans hash size set to 32M
qsearch hash size set to 1M
pawn hash size set to 1M
eval hash size set to 2M
(zct)1. uci
id name ZCT0.3.2443 JA
author Zach Wegner
uciok
isready
readyok
position startpos
setoption name MultiPV value 1
go infinite
stop
No move.
bestmove b1c3 ponder b8c6
position startpos moves f2f4
d7d5: games=5 winp=70.0%
bestmove d7d5 ponder b8c6
setoption name MultiPV value 1
d7d5: games=5 winp=70.0%
bestmove d7d5 ponder b8c6
go infinite
stop
bestmove d7d5 ponder b8c6
d7d5: games=5 winp=70.0%
bestmove d7d5 ponder b8c6
quit
Using just id fix alone without forced uci doesn't work. They both need to be in.

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

Re: ZCT 3.2442 by Zach Wegner - JA Windows builds available

Post by Zach Wegner »

Hmm... interesting. I think I might know what's going on, but I'm not positive. I'll get it fixed later today. I'll just send you an email about it when I do, not necessary to keep flooding CCC.

I also see that you were doing some tuning. Modifying the source is not necessary. Just put this in ZCT.ini:

Code: Select all

evalparam 9 -20 20
evalparam 10 -40 0 -20 20
I plan to make this a little more readable/robust by replacing the first number with a name.
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 »

Code: Select all

[Event "Computer Chess Game"]
[Site "MEDION_PC"]
[Date "2008.05.02"]
[Round "2.8"]
[White "zct 0.3.2443"]
[Black "Bright 0.3a smp"]
[Result "1-0"]

1. e4 {+0.26/17} c5 2. Nc3 {+0.47/16} Nc6 3. Nf3 {+0.46/16} 
e6 4. d4 {+0.50/16} cxd4 5. Nxd4 {+0.60/15} Qc7 6. Be3 
{+0.64/14} a6 7. f4 {+0.67/14} b5 8. e5 {+0.54/13} Bb7 
{+0.10/15} 9. Nxc6 {+0.44/13} Bxc6 {+0.48/16} 10. a4 
{-0.01/14} b4 {+0.85/16} 11. Ne2 {-0.15/16} Qb7 {+0.92/16} 
12. Kf2 {-0.05/16} Ne7 {+0.89/16} 13. a5 {-0.04/16} g5 
{+1.18/15} 14. fxg5 {+0.38/14} Nf5 {+1.25/15} 15. Bd4 
{+0.21/14} Be7 {+1.61/14} 16. Qd2 {+0.20/14} Rc8 {+1.96/14} 
17. c3 {+0.75/15} bxc3 {+2.01/14} 18. bxc3 {+0.72/15} Rg8 
{+1.87/15} 19. h4 {+0.31/15} h6 {+1.67/14} 20. gxh6 
{+1.80/13} Rb8 {+1.41/13} 21. Bb6 {+2.02/12} Be4 {+1.01/13} 
22. h7 {+1.90/12} Rh8 {+0.73/16} 23. h5 {+1.67/13} Rxh7 
{+1.01/14} 24. Rh3 {+1.51/13} Rg7 {+1.00/13} 25. h6 
{+2.10/13} Rg8 {+0.66/15} 26. Kg1 {+2.10/12} Rc8 {+0.18/13} 
27. c4 {+2.00/11} Nh4 {+0.00/13} 28. Ng3 {+2.47/12} Bg6 
{-0.51/13} 29. Re1 {+2.28/11} Bh7 {-0.79/13} 30. Qf4 
{+2.54/13} Bg5 {-0.93/14} 31. Qf2 {+2.73/13} Be7 {-0.97/13} 
32. Nh5 {+2.92/14} Nf5 {-2.10/14} 33. Bd3 {+2.95/13} Kf8 
{-2.52/14} 34. Nf6 {+2.60/12} Bxf6 {-2.64/15} 35. exf6 
{+2.99/13} Rg6 {-3.85/15} 36. Qe2 {+2.99/12} Rg5 {-4.52/15} 
37. Be4 {+3.09/13} Qb8 {-4.07/15} 38. Bxf5 {+3.10/12} Rxf5 
{-4.22/16} 39. Qg4 {+5.08/16} Rxf6 {-4.22/15} 40. Qg7+ 
{+5.26/14} Ke7 {-4.91/15} 41. Qxh7 {+6.06/13} d6 {-5.80/14} 
42. Qd3 {+5.22/11} Rh8 {-5.51/13} 43. h7 {+5.74/12} Rg6 
{-7.50/13} 44. c5 {+5.99/11} Rg5 {-9.23/13} 45. Qc3 
{+6.26/11} d5 {-10.68/13} 46. c6 {+6.35/11} f6 {-15.30/12} 
47. c7 {+6.22/10} Qa8 {-13.30/12} 48. c8=N+ {+7.34/12} Qxc8 
{-8.17/14} 49. Qxc8 {+8.29/14} Rxc8 {-9.00/16} 50. h8=Q 
{+9.24/16} Rxh8 {-9.04/17} 51. Rxh8 {+9.28/16} Kf7 
{-9.72/17} 52. Ra8 {+9.64/15} d4 {-10.28/16} 53. Ra7+ 
{+10.22/15} Kg6 {-11.18/18} 54. Rxe6 {+10.32/15} Kf5 
{-12.91/15} 55. Rd6 {+11.03/15} d3 {-11.57/14} 56. Rxd3 
{+11.20/13} Rg8 {-14.55/14} 57. Rxa6 {+11.40/13} Ke4 
{-17.75/14} 58. Rd8 {+11.83/14} Rg5 {-21.47/15} 59. Bd4 
{+15.40/16} Rb5 {-22.22/15} 60. Re6+ {+16.54/16} Kf5 
{-26.79/14} 61. Rxf6+ {+16.95/15} Ke4 {-99.76/14} 62. a6 
{+17.61/15} Ra5 {-22.24/12} 63. a7 {+20.96/14} Ra4 
{-99.86/11} 64. Re6+ {+327.46/14} Kd3 {-99.88/11} 65. Be3+ 
{+327.54/14} Kc3 {-99.88/11} 66. Rc6+ {+327.56/17} Rc4 
{-99.90/9} 67. a8=Q {+327.58/28} Kb3 {-99.92/8} 68. Rd3+ 
{+327.60/87} Kc2 {-99.94/5} 69. Rxc4+ {+327.62/128} Kxd3 
{-99.96/3} 70. Qd5+ Kxe3 {-99.98/1} 71. Re4# {White mates} 
1-0
TC is 60m+1s.

12 Kf2 looked a bit weird,but it managed to win!
Sometimes it plays a book move,but none in this game.
Seems i'll have to play around with that a bit more.

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

Post by Zach Wegner »

Wow, great game, thanks. Kf2 looks like a pretty bad move, my king safety/castling evaluation is kind of messed up. At that point, black looks to have a strong attack building up. 13...g5 is a nice looking pawn sac to move the knight into action, but I think it was the fatal blunder. I love how after 20.gxh6 ZCT's eval shoots up, and it takes Bright 12 moves to fully realize the danger. This probably is an example of both ZCT's deeper searching making up for crappy eval, and likely a too aggressive passed pawn eval. The game was very entertaining though, with three promotions.

My little engine looks like it has some potential, once I get the eval tuned up.

And about the book, I think Jim made the book with the "win percent" turned up too high, so only moves which are strongly winning are stored in the book. These are scattered all around the tree. I'd recommend setting win_percent either to 0 or to a low value around 40 when making books. Too many good book moves can get abandoned, it's not a very good metric... I'll try to get some PGNs soon so I can make a nice solid book.
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:Wow, great game, thanks. Kf2 looks like a pretty bad move, my king safety/castling evaluation is kind of messed up. At that point, black looks to have a strong attack building up. 13...g5 is a nice looking pawn sac to move the knight into action, but I think it was the fatal blunder. I love how after 20.gxh6 ZCT's eval shoots up, and it takes Bright 12 moves to fully realize the danger. This probably is an example of both ZCT's deeper searching making up for crappy eval, and likely a too aggressive passed pawn eval. The game was very entertaining though, with three promotions.

My little engine looks like it has some potential, once I get the eval tuned up.

And about the book, I think Jim made the book with the "win percent" turned up too high, so only moves which are strongly winning are stored in the book. These are scattered all around the tree. I'd recommend setting win_percent either to 0 or to a low value around 40 when making books. Too many good book moves can get abandoned, it's not a very good metric... I'll try to get some PGNs soon so I can make a nice solid book.
About the book: I cannot blame Jim(probably only myself :lol: ) as I generated one from Olivier Deville's pgn collection.
I used

Code: Select all

bookc gm2001.pgn book.zbk 1 14 45 
using 3 for played games was even "worse".
Btw.It might be interesting to use 2 percentages ,one for each colour(fi 45% for black and 55% for white).

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:Wow, great game, thanks. Kf2 looks like a pretty bad move, my king safety/castling evaluation is kind of messed up. At that point, black looks to have a strong attack building up. 13...g5 is a nice looking pawn sac to move the knight into action, but I think it was the fatal blunder. I love how after 20.gxh6 ZCT's eval shoots up, and it takes Bright 12 moves to fully realize the danger. This probably is an example of both ZCT's deeper searching making up for crappy eval, and likely a too aggressive passed pawn eval. The game was very entertaining though, with three promotions.

My little engine looks like it has some potential, once I get the eval tuned up.

And about the book, I think Jim made the book with the "win percent" turned up too high, so only moves which are strongly winning are stored in the book. These are scattered all around the tree. I'd recommend setting win_percent either to 0 or to a low value around 40 when making books. Too many good book moves can get abandoned, it's not a very good metric... I'll try to get some PGNs soon so I can make a nice solid book.
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-)
_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….
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 »

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