Perft and Captures
Posted: Thu Jan 24, 2013 2:20 am
Hi, I've been testing my chess engine's move generation by using perft. I have a problem with my move generation in the results that I'm getting, my engine is printing out numbers such as:
Depth: 5
Total Nodes: 4,865,609
Captures: 84,071
E.P: 258
Depth 6
Total Nodes: 119,060,324
Captures: 2,890,831
E.P: 5,506
If you look at the correct values (http://chessprogramming.wikispaces.com/Perft+Results), then you will see that in both cases, my engine got the total number of nodes correct. But, except in the case of the en passant number on depth 5, it is over counting the number of captures and en passant. This leads me to believe that my overall move generation function is working correctly, except that some moves are being flagged as captures or en passant when they shouldn't be. Up until now I've been using stockfish at the command line to give me a perft count. But stockfish only gives me a total number of nodes, and not captures/e.p. Can anyone recommend a good engine to use that gives perft counts with info about #of captures, etc.?
Depth: 5
Total Nodes: 4,865,609
Captures: 84,071
E.P: 258
Depth 6
Total Nodes: 119,060,324
Captures: 2,890,831
E.P: 5,506
If you look at the correct values (http://chessprogramming.wikispaces.com/Perft+Results), then you will see that in both cases, my engine got the total number of nodes correct. But, except in the case of the en passant number on depth 5, it is over counting the number of captures and en passant. This leads me to believe that my overall move generation function is working correctly, except that some moves are being flagged as captures or en passant when they shouldn't be. Up until now I've been using stockfish at the command line to give me a perft count. But stockfish only gives me a total number of nodes, and not captures/e.p. Can anyone recommend a good engine to use that gives perft counts with info about #of captures, etc.?