Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: hash and checks

Author: Robert Hyatt

Date: 21:09:16 01/19/01

Go up one level in this thread


On January 19, 2001 at 21:45:28, Larry Griffiths wrote:

>On January 19, 2001 at 19:47:20, Will Singleton wrote:
>
>>I was looking at my code today, and I noticed that I don't store or retrieve
>>check positions in and from the hash table.  I have always had a bad habit of
>>not documenting my code, which stems from my origins as a hobby programmer.  I
>>always figure I'll remember what x+ (temp-1) means, how could I forget?
>>
>>Anyway, do others store checking positions?  If so, what happens if you disable
>>it?  I'm asking because I had some weird results when I tried it.
>>
>>Will
>
>It seems like I do not store checkmates because my score for checkmates are
>adjusted depending upon the ply that they occured at so that checkmates close to
>the root ply score higher than checkmates at the horizon nodes and beyond so
>that the shortest number of moves to a checkmate would be chosen.  I think that
>this scoring method caused problems with my hash table, so I do not store
>checkmates in my hash table.
>
>Maybe you score like I do ?
>
>Larry.


Nothing wrong with doing what I do.  If the score says mate in 7 plies,
and you are at ply=3 in the tree, then store the score as mate in 5 plies
from _this_ position.  Then it works perfectly no matter where you get the
hash hit since you have made the mate score you store in the hash table
relative to the current ply rather than relative to the root.  When you get
a hit, correct the mate score for the ply you hit at and you are set...



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.