Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Question: For maximum efficiency, where do you use InCheck() function

Author: Rafael Andrist

Date: 23:36:58 11/25/01

Go up one level in this thread


On November 25, 2001 at 18:45:13, Sune Fischer wrote:

>On November 25, 2001 at 18:42:41, Sune Fischer wrote:
>
>>One way would be to assign a large value to the king, e.g. 2*matescore then the
>>search will automaticly filter out these moves.
>
>BTW forget this idea, it won't work if both kings can be captured within a few
>plies, the program will just consider it a trade and continue without kings, I
>just remember I tried this a while back.
>
>-S.

It makes sense to check at least if both kings can capture each other during the
move generation. This is easy to do and gives a little speedup in the endgame
where this happens often.

Rafael B. Andrist



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.