limits.time = time[pos.side_to_move()];
limits.increment = inc[pos.side_to_move()];
- assert(pos.is_ok());
-
return think(pos, limits, searchMoves);
}
// 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) {