Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: debugging move generation routines

Author: JW de Kort

Date: 05:07:30 01/12/04

Go up one level in this thread


On January 10, 2004 at 19:09:34, Toni wrote:

>Hi all,
>
>I've written the move generation routines for my engine. I'm now debugging them.
>I've tested some positions in which there are castlings, en-passant captures and
>promotions, and everything seems OK, but when computing perft sometimes it gives
>wrong values at depth 4 or higher. The question is how to debug that, since the
>number of moves involved is enormous.
>
>regards
>
>fermath

What i found very usefull in all kinds of debugging purposes was to write an
incheck function that first checks to see if the king is still on the board
before looking for attackers. In my enigine i found a large number of bugs  with
this not only in movegeneration but also in move making and in search. A large
number of errors regarding the hashtable i have found using this. My engine is
very harsh: when this error occures it stops immediately.

regards
Jan Willem



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.