Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: What to do when hash table returns a Mate value?

Author: David Rasmussen

Date: 12:59:18 01/17/03

Go up one level in this thread


On January 17, 2003 at 14:07:59, Anthony Cozzie wrote:

>Last night Zappa played a most annoying game vs sfarrellc:
>
>
>1) is there just a bug here?
>2) if you get a mate score from the hash table, what do you do?
>
>anthony

Of course you have to adjust for ply depth when you store, and when you
retrieve. If you're like most of us, when encountering a mate during search, you
will return mate - ply, that is, how many plys _from the root_ the mate is. When
storing it, you should adjust the score so it's _mate_from_here_. And then when
retrieveing it, you should convert it back to a _mate from the root_. So if you
encounter a mate in 3 at ply 7, that is a mate in 10 from the root. You store
this as a mate in 3 from the current positon at ply 7. Then later when you
retrieve it at ply 11, you will have mate in 3 from here, and that is mate in 14
from the root etc.

/David



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.