Another Polyglot book question

Discussion of chess software programming and technical issues.

Moderator: Ras

fohristiwhirl
Posts: 30
Joined: Mon May 11, 2020 11:52 am
Full name: Allan Thomas

Another Polyglot book question

Post by fohristiwhirl »

Can I rely on these .bin format books being sorted? The ones I've seen "in the wild" have been - is this always so? Is it OK to regard an unsorted book as invalid?

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

Re: Another Polyglot book question

Post by hgm »

Books must be sorted by hash key. (Or the probing, which searches the key through bisection, would not work.) The order of the moves for a given key is undefined.
fohristiwhirl
Posts: 30
Joined: Mon May 11, 2020 11:52 am
Full name: Allan Thomas

Re: Another Polyglot book question

Post by fohristiwhirl »

Thanks, that's as I hoped.