Author: Robert Hyatt
Date: 06:33:43 11/23/00
Go up one level in this thread
On November 23, 2000 at 04:42:23, Pham Minh Tri wrote: >On November 22, 2000 at 23:28:06, Robert Hyatt wrote: > >>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. > >I have used this method in my program and found it could reduce a little time of >searching even though the program has to do much extra work. That result makes >me little doubt that something could be wrong in my program. If someone could >try, show me your result, please. > >>Or you can cut the search off at that point since no captures will be legal >>unless they take you out of check... > >I am afraid that method could return wrong scores (that lead to final wrong >result) and save nothing. > >Pham Not particularly. This is actually the approach I use since I don't detect check in the q-search. It actually works fine.
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.