Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Hash Collision

Author: Tord Romstad

Date: 00:41:22 07/16/04

Go up one level in this thread


On July 15, 2004 at 17:56:36, Dieter Buerssner wrote:

>I typically add something like
>
>  if (hashkey == somenumber)
>    printf("found\n");
>
>and add a breakpoint to the printf line, which might actually print more info,
>like a node count. Then add another if (nodes == thatnumber) printf ...
>
>So, you eventually will get to the right point in debug mode and can single step
>it.

Yes.  It is not mentioned very often, but one of the most useful things about
hash keys is that they are very convenient to use when debugging.

Tord



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.