Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: perft and crafty

Author: Mridul Muralidharan

Date: 01:03:58 02/15/04

Go up one level in this thread


On February 15, 2004 at 03:32:09, Slater Wold wrote:

>On February 15, 2004 at 03:25:43, Mridul Muralidharan wrote:
>
>>Hi,
>>
>>  I was trying to test the move generator of the new engine that I am writing
>>and was making use of crafty to fix its bugs.
>>Looks like there could be a potential bug with crafty itself in perft mode.
>>
>>I tried
>>
>>trace 5
>>perft5
>>
>>
>>and I get this sequence in the crafty output :
>>
>>Nf3 Nc6 e4 Nd4 Ke1e2
>>
>>[D] r1bqkbnr/pppppppp/8/8/3nP3/5N2/PPPP1PPP/RNBQKB1R w KQkq - 0 3
>>
>>The move Ke2 is illegal - moves into check.
>>My understanding was that these moves should not figure out in perft.
>>Am I correct here ?
>>If yes ,
>>then were can I get more acccurate perft generator - which can also show me the
>>move trace in case I have to debug ?
>>(This bug/feature in crafty makes it worthless for perft for me - the numbers
>>are always wrong now - and so have to dig deeper to get actual count).
>>
>>Thanks in advance
>>Mridul
>
>What is the perft 5 total?
>
>Crafty generates *all* moves, and then throws out the illegal ones in the
>search.  So it is possible trace gets psuedo-legal moves.

Ok got crafty fixed.
Thanks for your suggestion - hacked crafty to get it to print the right result.

Regards
Mridul



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.