Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: debugging question

Author: Sune Fischer

Date: 07:54:26 06/29/03

Go up one level in this thread


On June 29, 2003 at 08:23:44, Uri Blass wrote:

>I found that my latest version show different analysis when I give it the same
>position again.
>
>It is not supposed to happen because I did not implement positional learning and
>after setboard command it should forget everything.
>
>The most logical reason that I can think about it is if
>an important global varaible is changed.

I suppose this only happens when you use setboard and does not restart the
engine?

If so, check that you reset the killer list, history table the hash table plus
any other tables that you might use in the search.
This could change move ordering and give you different PV.

>My question is if there is a simple way to check the global varaibles or global
>arrays that have different values.

There is, you can throw everything into a search namespace, or a tree struct,
then it's quite easy to remember to resetting everything.

>I can generate a copy for every global varaible and later compare the global
>varaibles with their copies that are not used but this is not a general solution
>because this means that I need to add more debugging code when I add more
>varaibles.

-S.
>Uri



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.