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
0 answers
132 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 ...
user avatar
2 votes
1 answer
163 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 ...
user avatar
6 votes
1 answer
389 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+ . [...
user avatar
2 votes
2 answers
2k 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 | | ...
user avatar
4 votes
3 answers
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 ...
user avatar
  • 415
3 votes
1 answer
765 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 ...
user avatar
  • 133