From: Marco Costalba Date: Wed, 27 Apr 2011 22:20:42 +0000 (+0100) Subject: Perft counts leaf nodes not generated moves. X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=e656ddcf18c887cd1f396dc2e433c001cd0bda11;hp=1d0159075e916c738760b788d605b71b3736cb7c Perft counts leaf nodes not generated moves. No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/search.cpp b/src/search.cpp index eb7666af..1ae6b892 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -318,8 +318,8 @@ void init_search() { } -/// perft() is our utility to verify move generation. All the legal moves up to -/// given depth are generated and counted and the sum returned. +/// perft() is our utility to verify move generation. All the leaf nodes up to +/// the given depth are generated and counted and the sum returned. int64_t perft(Position& pos, Depth depth) { diff --git a/src/uci.cpp b/src/uci.cpp index 39270c6f..2dacd1c2 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -224,7 +224,7 @@ namespace { // perft() is called when engine receives the "perft" command. // 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) {