Nalimov egtb probing code

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
Fabio Gobbato
Posts: 217
Joined: Fri Apr 11, 2014 10:45 am
Full name: Fabio Gobbato

Nalimov egtb probing code

Post by Fabio Gobbato »

Where can I find the probing code for the Nalimov egtb?
Joost Buijs
Posts: 1563
Joined: Thu Jul 16, 2009 10:47 am
Location: Almere, The Netherlands

Re: Nalimov egtb probing code

Post by Joost Buijs »

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 8:54 pm, edited 1 time in total.
Vinvin
Posts: 5228
Joined: Thu Mar 09, 2006 9:40 am
Full name: Vincent Lejeune

Re: Nalimov egtb probing code

Post by Vinvin »

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: 710
Joined: Sat Dec 06, 2014 1:53 pm

Re: Nalimov egtb probing code

Post by yurikvelo »

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: 2821
Joined: Fri Sep 25, 2015 9:38 pm
Location: Sortland, Norway

Re: Nalimov egtb probing code

Post by Nordlandia »

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
velmarin
Posts: 1600
Joined: Mon Feb 21, 2011 9:48 am

Re: Nalimov egtb probing code

Post by velmarin »

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

Re: Nalimov egtb probing code

Post by hgm »

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: 2821
Joined: Fri Sep 25, 2015 9:38 pm
Location: Sortland, Norway

Re: Nalimov egtb probing code

Post by Nordlandia »

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: 27790
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Nalimov egtb probing code

Post by hgm »

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: 2821
Joined: Fri Sep 25, 2015 9:38 pm
Location: Sortland, Norway

Re: Nalimov egtb probing code

Post by Nordlandia »

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.