Hashing 50 Move Counter

Discussion of chess software programming and technical issues.

Moderator: Ras

brianr
Posts: 540
Joined: Thu Mar 09, 2006 3:01 pm
Full name: Brian Richardson

Hashing 50 Move Counter

Post by brianr »

The copy/make thread made me wonder about also hashing the 50 move counter.
I assume most already hash castle and ep status.

Does anyone bother also hashing the 50 move counter too?

Thanks,
Brian
rjgibert
Posts: 317
Joined: Mon Jun 26, 2006 9:44 am

Re: Hashing 50 Move Counter

Post by rjgibert »

Wouldn't you miss a lot of useful transpositions if you hash the 50 move counter?
User avatar
hgm
Posts: 28389
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Hashing 50 Move Counter

Post by hgm »

Hashing the 50-move counter would make hashing almost useless. It is usually better to ignore the 50-move counter anyway, so it is not clear for what you would pay this price.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Hashing 50 Move Counter

Post by bob »

brianr wrote:The copy/make thread made me wonder about also hashing the 50 move counter.
I assume most already hash castle and ep status.

Does anyone bother also hashing the 50 move counter too?

Thanks,
Brian
No, it would absolutely kill your hash hit rate, because you essentially change the "if (draft >= depth)" test that determines if the hash entry is usable to "if (draft == depth)" which is not what you want.