Can you please download latest version and try again? Thanks.velmarin wrote:
I have compiled and I have been an exception.
Question to syzygy author
Moderators: hgm, chrisw, Rebel
-
- Posts: 2684
- Joined: Sat Jun 14, 2008 9:17 pm
Re: Question to syzygy author
-
- Posts: 227
- Joined: Mon Sep 12, 2011 11:27 pm
- Location: Moscow, Russia
Re: Question to syzygy author
The worse thing is that code in https://github.com/syzygy1/tb contains some errors. For example in https://github.com/syzygy1/tb/blob/mast ... bprobe.cpp line 722 contains:
while dtz is not defined neither in int root_probe(Position& pos, Value &TBScore) nor globally.
Hopefully Stockfish repository contains a correct version of this function.
Code: Select all
if (dtz > 0)
Hopefully Stockfish repository contains a correct version of this function.
The Force Be With You!
-
- Posts: 1600
- Joined: Mon Feb 21, 2011 9:48 am
Re: Question to syzygy author
Yes. now no breaks, work fine.mcostalba wrote:Can you please download latest version and try again? Thanks.velmarin wrote:
I have compiled and I have been an exception.
-
- Posts: 5661
- Joined: Tue Feb 28, 2012 11:56 pm
Re: Question to syzygy author
Weird. Something must have gone wrong in editing at some point. But this code won't compile: no declaration of dtz and wdl is declared twice.Sergei S. Markoff wrote:The worse thing is that code in https://github.com/syzygy1/tb contains some errors. For example in https://github.com/syzygy1/tb/blob/mast ... bprobe.cpp line 722 contains:
while dtz is not defined neither in int root_probe(Position& pos, Value &TBScore) nor globally.Code: Select all
if (dtz > 0)
Hopefully Stockfish repository contains a correct version of this function.
The version in SF has
Code: Select all
int dtz = probe_dtz(pos, &success);
-
- Posts: 227
- Joined: Mon Sep 12, 2011 11:27 pm
- Location: Moscow, Russia
Re: Question to syzygy author
Yes, exactly.
Now I'm going through diff between Syzygy and Stockfish Syzygy versions trying to find if there are other significant differences that could affect engine play strength instead of making code just non-compilable...
Now I'm going through diff between Syzygy and Stockfish Syzygy versions trying to find if there are other significant differences that could affect engine play strength instead of making code just non-compilable...
The Force Be With You!
-
- Posts: 5661
- Joined: Tue Feb 28, 2012 11:56 pm
Re: Question to syzygy author
I don't think there is anything else, except that a condition "wdl == 2" has to be replaced with "dtz > 0". This has been fixed now (see lines 687, 698).Sergei S. Markoff wrote:Yes, exactly.
Now I'm going through diff between Syzygy and Stockfish Syzygy versions trying to find if there are other significant differences that could affect engine play strength instead of making code just non-compilable...
I have also added a few lines of comments in probe_dtz_no_ep to be more specific about what moves have to be generated when (see lines 476, 504, 520).
edit: a few more changes to the comments, so the above line numbering is no longer correct.
-
- Posts: 227
- Joined: Mon Sep 12, 2011 11:27 pm
- Location: Moscow, Russia
Re: Question to syzygy author
Thank you, Ronald!
It's helped me to catch a bug in SmarThink adaptation of probing code. Let see if it will play better.
BTW, have you seen any testsets for testing TBs?..
It's helped me to catch a bug in SmarThink adaptation of probing code. Let see if it will play better.
BTW, have you seen any testsets for testing TBs?..
The Force Be With You!
-
- Posts: 1600
- Joined: Mon Feb 21, 2011 9:48 am
Re: Question to syzygy author
Only five tables.Sergei S. Markoff wrote:Thank you, Ronald!
It's helped me to catch a bug in SmarThink adaptation of probing code. Let see if it will play better.
BTW, have you seen any testsets for testing TBs?..
http://www.mediafire.com/download/ofte1 ... on9/tb.epd
-
- Posts: 227
- Joined: Mon Sep 12, 2011 11:27 pm
- Location: Moscow, Russia
Re: Question to syzygy author
Thank you, Jose!
But is looks some of tests are wrong.
For example #12:
1k6/2r5/1KB5/8/8/7R/8/8 w - - 0 1
The position is draw and Be4 is not the only move...
The same for #15:
1k6/8/1K6/1N6/1r6/8/8/2R5 w - - 0 1
Kc6 is not the only move...
But is looks some of tests are wrong.
For example #12:
1k6/2r5/1KB5/8/8/7R/8/8 w - - 0 1
The position is draw and Be4 is not the only move...
The same for #15:
1k6/8/1K6/1N6/1r6/8/8/2R5 w - - 0 1
Kc6 is not the only move...
The Force Be With You!
-
- Posts: 2684
- Joined: Sat Jun 14, 2008 9:17 pm
Re: Question to syzygy author
Thanks! Done.syzygy wrote:That's looking very good!mcostalba wrote:Full code is here: https://github.com/official-stockfish/S ... bprobe.cpp
If you like, feel free to add a copyright notice to the top of the file and replace the "without restrictions" license with the GPL. (The point of "without restrictions" is that you already have permission for that.)
Just one quick question: number of blocks in a table is real_num_blocks, but actually you use num_blocks that is the former plus the content of a uint8_t data in the file. Can you please explain the difference?