Perft Results
Posted:
09 May 2011, 07:33
by Dan
Hi all, I've finished a move generator and am now testing Perft and my results are these:
Perft(1): 20
Perft(2): 400
Perft(3): 8902
Perft(4): 197742
Perft(5): 4897256
Perft(6): 120921506
Now, after some Googling with my numbers, I see I'm not alone in these (wrong) results. Is there a known systematic error that, apparently not only I, have made?
Re: Perft Results
Posted:
09 May 2011, 15:13
by Dan
Update:
I found what was wrong; there was no legality checking to my moves. I guess I have to do that before I go ahead and make them.
Best
Re: Perft Results
Posted:
11 May 2011, 08:24
by H.G.Muller
As most engines use pseudo-legal move generation, it might at first glance seem useful to also have perft counts for pseudo-legal moves. Problem is that there is no unique definition of what is pseudo-legal, and that it differs per implementation what the move generators produce. For instance, is castling through check pseudo-legal or illegal? How about castling out of check? Some move generators will generate pseudo-legal moves where the King wanders into check, but not moves with pinned pieces. Some move generators do switch to legal move generation when they generate check evasions. There just is too much variety. So this is why people stick to counting legal moves; those are unambiguously defined.