Nalimov egtb probing code

Discussion of chess software programming and technical issues.

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
User avatar
Fabio Gobbato
Posts: 131
Joined: Fri Apr 11, 2014 8:45 am
Contact:

Nalimov egtb probing code

Post by Fabio Gobbato » Mon May 16, 2016 6:41 pm

Where can I find the probing code for the Nalimov egtb?

Joost Buijs
Posts: 987
Joined: Thu Jul 16, 2009 8:47 am
Location: Almere, The Netherlands

Re: Nalimov egtb probing code

Post by Joost Buijs » Mon May 16, 2016 6:49 pm

You can find it in the Crafty source code, you'll need permission from Eugene Nalimov and Andrew Kadatch to use it.
Nowadays most people use Syzygy, but it is nice to have distance to mate information, with SSD's getting cheaper the larger size of Nalimov egtb is not such a big problem anymore.
Last edited by Joost Buijs on Mon May 16, 2016 6:54 pm, edited 1 time in total.

Vinvin
Posts: 4390
Joined: Thu Mar 09, 2006 8:40 am
Full name: Vincent Lejeune

Re: Nalimov egtb probing code

Post by Vinvin » Mon May 16, 2016 6:50 pm

Fabio Gobbato wrote:Where can I find the probing code for the Nalimov egtb?
Probably in Crafty. But you have to get the permission of Eugene Nalimov to release your code with it.

egtb.cpp in the source here http://www.craftychess.com/crafty-25.0.1.zip .
Found here http://www.craftychess.com/

User avatar
yurikvelo
Posts: 470
Joined: Sat Dec 06, 2014 12:53 pm

Re: Nalimov egtb probing code

Post by yurikvelo » Mon May 16, 2016 6:56 pm

reference implementation by Eugene Nalimov and Robert Hyatt was realized in Crafty, with Tablebases and probing code available
https://www.cis.uab.edu/hyatt/crafty/source/

probe.c

Code: Select all

 *******************************************************************************
 *                                                                             *
 *  EGTBProbe() is the interface to the new tablebase code by Eugene Nalimov.  *
 *  This is called from Search() after a capture, when the number of pieces    *
 *  remaining on the board is less than or equal to the max number of pieces   *
 *  we have in the EGTB files that are available for use.                      *
 *                                                                             *
 *******************************************************************************

User avatar
Nordlandia
Posts: 2470
Joined: Fri Sep 25, 2015 7:38 pm
Location: Sortland, Norway

Re: Nalimov egtb probing code

Post by Nordlandia » Mon May 16, 2016 7:23 pm

Joost Buijs wrote:You can find it in the Crafty source code, you'll need permission from Eugene Nalimov and Andrew Kadatch to use it.
Nowadays most people use Syzygy, but it is nice to have distance to mate information, with SSD's getting cheaper the larger size of Nalimov egtb is not such a big problem anymore.
I wish there were "Stockfish Matefinder" with Nalimov support.

Yes, indeed Nalimov still has it use today. Although big and cumbersome/clumbsy.


User avatar
hgm
Posts: 23772
Joined: Fri Mar 10, 2006 9:06 am
Location: Amsterdam
Full name: H G Muller
Contact:

Re: Nalimov egtb probing code

Post by hgm » Mon May 16, 2016 7:50 pm

Nordlandia wrote:I wish there were "Stockfish Matefinder" with Nalimov support.

Yes, indeed Nalimov still has it use today. Although big and cumbersome/clumbsy.
Why not use Gaviota EGTs?

User avatar
Nordlandia
Posts: 2470
Joined: Fri Sep 25, 2015 7:38 pm
Location: Sortland, Norway

Re: Nalimov egtb probing code

Post by Nordlandia » Mon May 16, 2016 7:55 pm

hgm wrote:
Nordlandia wrote:I wish there were "Stockfish Matefinder" with Nalimov support.

Yes, indeed Nalimov still has it use today. Although big and cumbersome/clumbsy.
Why not use Gaviota EGTs?
Gaviota is 10% less in space.

Hardly a difference at all. Also 6-Men do not exist in that format.

You mean for Stockfish, i'm not 100% certain but Stockfish do not support Gaviota.

User avatar
hgm
Posts: 23772
Joined: Fri Mar 10, 2006 9:06 am
Location: Amsterdam
Full name: H G Muller
Contact:

Re: Nalimov egtb probing code

Post by hgm » Mon May 16, 2016 8:00 pm

Nalimov probing code is not compatible with the GPL, so Stockfish or Stockfish derivatives can NEVER get permission to use it. For Gaviota EGT you don't have that problem.

User avatar
Nordlandia
Posts: 2470
Joined: Fri Sep 25, 2015 7:38 pm
Location: Sortland, Norway

Re: Nalimov egtb probing code

Post by Nordlandia » Mon May 16, 2016 8:03 pm

Custom stockfish version with Gaviota support is handy indeed for endgame studies and such inolving mate in x numbers.

Depth To Mate over Syzygy is more appealing.

Post Reply