Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: another question about the PV

Author: Robert Hyatt

Date: 07:51:05 11/12/02

Go up one level in this thread


On November 12, 2002 at 08:39:47, Andreas Guettinger wrote:

>On November 11, 2002 at 22:22:43, Robert Hyatt wrote:
>
>Great, I wanted to know that, too.
>
>Another thing I thought about is, many engines mark checking moves in the PV
>with a +, e.f. Qxh7+.
>
>Since I do not test during move generation if it is a normal move or a move that
>puts the opponent in check (I check for checks at the start of each iteration
>and after I make the move for the side to move), who do I know when to add the
>+? Do I have to do another check test for the opponent?
>
>Andreas


+ is part of the SAN specification, although I can think of many engines that
don't append it
to a checking move.

I do it in the move output routine.  After converting the "binary" move format
to plain old
SAN, I make the move, and determine if the opponent is in check.  If so, I
append a "+" to
the move unless the opponent also has no legal moves out of check, in which case
I append
a "#" (mate) to the move...



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.