Author: Daniel Clausen
Date: 02:26:48 06/20/01
Go up one level in this thread
Hi
On June 20, 2001 at 04:36:44, Uri Blass wrote:
>I use the perft command in crafty in order to debug my move generator.
>
>I found that perft 4 gave me correct result when perft 5 does not give me
>correct result and I got 4865621 instead of 4865609.
>
>After finding it
>I calculated the perft 4 after every legal move and found that perft 4 does not
>give correct result after 1.d3
>
>After finding it I checked perft 3 after d3 to see where my program is wrong
>and found that after 1.d3 c5 I got 15972 instead of 15971.
>
>I now need to continue in this way to check where is the error.
Personally I found the position/numbers given in KiwiPete's finger notes on CCC
to be extremely useful to debug my move generator:
6: The following position is a move generation test. Listed are the number
of different games from that position to ply 1,2,3,4, and 5.
7: r3k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R3K2R w KQkq -
8: 48; 2,039; 97,862; 4,085,603; 193,690,690
The position includes all move-types I could think of, which the initial
position obviously doesn't. (ie promotion, castling after 5 plies) Obviously a
'setup position' feature is needed to use this though..
>Is there a faster way to debug the move generator?
Yes. Test more frequently instead of writing the whole generator and _then_
test. ;)
Regards,
Sargon
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.