Questions tagged [perft]

Perft, (performance test, move path enumeration) a debugging function to walk the move generation tree of strictly legal moves to count all the leaf nodes of a certain depth, which can be compared to predetermined values and used to isolate bugs.

Filter by
Sorted by
Tagged with
3
votes
0answers
103 views

Debugging my PERFT coding

I'm stuck debugging my move generation and do move function. I noticed that the castling as actually the problem in my code, but I think I have implemented everything right. I installed some java ...
2
votes
1answer
124 views

Getting wrong results in perft stats with checks and mates

The perft count works well after testing with many positions from epd files from the web Now I want to see some perft stats like this one: https://www.chessprogramming.org/Perft_Results, from the ...
6
votes
1answer
375 views

There are three checks in this position?

I found this position in the Chess Programming Wiki. It's a perft calculation. In the depth 2 the results informs that there are 3 checks. But I just able to find 2 checks: Kf1 hxg2+ Kf1 Bxe2+ . [...
2
votes
2answers
1k views

Stockfish perft displays reversed game notation?

I'm debugging my engine using Stockfish, and I suddenly notice a massive difference between mine and Stockfish. Board and fen string +---+---+---+---+---+---+---+---+ | r | n | b | q | | k | | ...
4
votes
3answers
2k views

Validate Engine moves using Perft and divide

I'm developing a small Engine in Java, before trying something more elaborate in C/C++. Right now I'm running some perft tests (the 'perf_talkchess' file), but as expected it has some bugs. Consider ...
3
votes
1answer
709 views

Is there a chess engine with divide perft for captures only?

I'm programming a chess engine from scratch in C++, and I have it playing games on UCI against others already. I spent about four days trying to weed out bugs in my move generator, and finally did ...