1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-11 19:49:14 +00:00

Perft counts leaf nodes not generated moves.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2011-04-27 23:20:42 +01:00
parent 1d0159075e
commit e656ddcf18
2 changed files with 3 additions and 3 deletions

View file

@ -318,8 +318,8 @@ void init_search() {
} }
/// perft() is our utility to verify move generation. All the legal moves up to /// perft() is our utility to verify move generation. All the leaf nodes up to
/// given depth are generated and counted and the sum returned. /// the given depth are generated and counted and the sum returned.
int64_t perft(Position& pos, Depth depth) { int64_t perft(Position& pos, Depth depth) {

View file

@ -224,7 +224,7 @@ namespace {
// perft() is called when engine receives the "perft" command. // perft() is called when engine receives the "perft" command.
// The function calls perft() passing the required search depth // The function calls perft() passing the required search depth
// then prints counted nodes and elapsed time. // then prints counted leaf nodes and elapsed time.
void perft(Position& pos, UCIParser& up) { void perft(Position& pos, UCIParser& up) {