Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: More hash questions

Author: Robert Hyatt

Date: 06:17:06 08/20/99

Go up one level in this thread


On August 20, 1999 at 04:59:26, James Robertson wrote:

>When my program spots a mate, if the position is, say, mate in 5, it may give a
>score "mate in 10", and then the next move "mate in 6", and then "mate in 3",
>and so on. Sometimes the "mate in x" will increase to "mate in x+y".
>
>When a mate is spotted, my program never fails to mate, and it seems to do it in
>the minimum moves possible. I am still worried; I don't think I have noticed any
>other programs doing this.
>
>I adjust my mate scores to reflect the node (if (score > MATE/2) score -= ply),
>but I may be goofing this up. Is this tied in with my problem in the post below
>this one? If anyone can help, I would really appreciate it.
>
>James


Check 'hash.c' in crafty.  I store mate scores (always have) but I correct them
by making them "mate-in-N from this ply" rather than "mate-in-N from the root".

This works perfectly...



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.