Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Help with a little debug question

Author: Michael Henderson

Date: 20:23:44 10/17/04

Go up one level in this thread


On October 17, 2004 at 22:58:35, William Bryant wrote:

>I am reaching for straws here, but, knowing the experience on this board,
>someone might have had this problem too.
>
>My move generator comes up short of perft.
>Specifically, from the starting position it is 20 move short on perft 3.
>
>I get 20 at ply 1
>I get 400 at ply 2 (20 responses)
>But I only get 8882 at ply 3 (reguardless of wether black starts first or white)
>
>I have checked all the special move, double pawn moves, ep moves, castling and
>can't seem to find
>the error.
>
>Any suggestions.
>
>William
>(BTW, this is a new engine for me, 64 bits wide for my new (hopefully) G5))

Using bitboards?
I remember getting short of perft when I had *1* incorrect number in my
hard-coded constant bitboard tables.  After I fixed that everything worked.

It is a good idea to decrease the number of pieces/piece types on the board--for
example test only pawns, knights...and compare your perfts with another program.
 Also you want to make sure your check detection is working.  If necessary you
can compare your move-gen output with other programs.

Michael



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.