- searchMoves.push_back(MOVE_NONE);
- limits.time = time[pos.side_to_move()];
- limits.increment = inc[pos.side_to_move()];
-
- Threads.start_thinking(pos, limits, searchMoves, true);
- }
-
-
- // perft() is called when engine receives the "perft" command.
- // The function calls perft() passing the required search depth
- // then prints counted leaf nodes and elapsed time.
-
- void perft(Position& pos, istringstream& is) {
-
- int depth, time;
- int64_t n;
-
- if (!(is >> depth))
- return;
-
- time = get_system_time();
-
- n = Search::perft(pos, depth * ONE_PLY);
-
- time = get_system_time() - time;