Installing the pv in the hashtable

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

Cardoso
Posts: 362
Joined: Thu Mar 16, 2006 7:39 pm
Location: Portugal
Full name: Alvaro Cardoso

Installing the pv in the hashtable

Post by Cardoso »

Hi,
When we install the pv in the hashtable should we care about the score and type of bounds of each entry?
Should the entry type be EXACT?
What about the score? In a negamax formulation should we flip the sign of the score as we flip sides while installing the pv in the hash?

Thanks in advance,
Alvaro
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Installing the pv in the hashtable

Post by bob »

Cardoso wrote:Hi,
When we install the pv in the hashtable should we care about the score and type of bounds of each entry?
Should the entry type be EXACT?
What about the score? In a negamax formulation should we flip the sign of the score as we flip sides while installing the pv in the hash?

Thanks in advance,
Alvaro
You certainly have a score and draft, so use those. And yes, you have to invert the score every other ply or the sign will be wrong. EXACT is what you should put in if you want to include the score.