Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: When to clear hashtable in UCI mode ?

Author: Fabien Letouzey

Date: 03:36:30 05/18/04

Go up one level in this thread


On May 17, 2004 at 18:08:00, Jeff GAZET wrote:

Hi Jeff,

>with WinBoard protocol, the command "new" say we're starting a new game, so i
>clear the hash table.

>In UCI mode, there isn't any new command, all moves are given.

There is "ucinewgame" in UCI+.  You can clear the hash table when you receive
it, if you want.

>When must i clear the table ?

You never have to.  Whether to clear the hash table (if at all) is an
engine-implementation decision and is not required by the protocols.

During EPD testing, you should also receive a "ucinewgame" before each position.

>What if i never clear the table ?

This depends on your hash-table replacement scheme.  I think most engines use
some sort of aging mechanism (to consider entries filled during previous
searches as "free").

Note that this problem is independent of the protocol.

Fabien.




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.