Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Crafty question: SavePV()

Author: Robert Hyatt

Date: 14:54:24 06/29/04

Go up one level in this thread


On June 29, 2004 at 15:53:44, Alvaro Jose Povoa Cardoso wrote:

>On June 29, 2004 at 14:58:47, Robert Hyatt wrote:
>
>>On June 29, 2004 at 14:20:17, Alvaro Jose Povoa Cardoso wrote:
>>
>>>Hi,
>>>In Search() after we searched all nodes and get an exact score the pv is updated
>>>at the end of the function.
>>>I can understand this code, but what about SavePV()? What does it do and in what
>>>situations is it used?
>>>
>>>Best regards,
>>>Alvaro Cardoso
>>
>>
>>That is a macro that backs up the actual PV path, depth, the reason the PV was
>>terminated (IE egtb or hash hit) etc...
>
>Sorry I'm a little dense (very little sleep lately).
>Could SavePV() be used at the end of Search() to update the PV in an exact score
>case? That is to say in place of that PV update code at the end of Search()?
>
>Thanks,
>Alvaro

No...

SavePV is only used to create a PV.  IE the search terminates due to checkmate,
repetition, hash table hit, egtb hit, etc.  The code at the end of search backs
up the PV from one ply to another.  SavePV() initially creates the PV that will
be backed up later...




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.