Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: qsearch: genmove empty && incheck?

Author: Robert Hyatt

Date: 20:28:06 11/22/00

Go up one level in this thread


On November 22, 2000 at 22:55:36, Pham Minh Tri wrote:

>Hi,
>
>I am wondering what to do for qsearch function when capture move list is empty
>and the side to move is incheck.
>
>Thanks in advance for any help.
>Pham

If you are going to detect "incheck" to find mates, then you simply have
to generate all moves, not just captures.  And search just like you do
for normal positions in the regular search.

Or you can cut the search off at that point since no captures will be legal
unless they take you out of check...



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.