Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Handling repetitions?

Author: Frederik Tack

Date: 14:57:21 12/22/05

Go up one level in this thread


>
>I think that you care too much about speed.
>It is more important to have correct search and you may miss forced repetition
>in your search.
>
>You may miss simple perpetual check.
>Here is an example
>
>You may miss that capturing the knight leads to a draw.
>[D]3q3k/8/8/8/8/P7/QP4Pn/6K1 w - - 0 1
>

Yeah, i also think it's more important to handle these kind of positions
correctly, so since yesterday, i'm not considering this anymore as an option.


>I think that even 10% speed reduction is good to pay to not miss things like
>that.
>
>For the record here is my code to detect repetition that is part of the function
>to detect draws(the first check is for a draw by the 50 move rule and only if it
>fails I check for repetition).
>
>	if (fifty<=3)
>		return 0;
>	if (fifty>=fiftyvalue)
>		return 1;
>
>	backward=4;
>	while ((backward<=fifty)&&(zobkey[hply-backward]!=zobkey[hply]))
>			backward+=2;
>		if (backward<=fifty)
>			return 1;
>		else return 0;
>
>Uri

Tx



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.