+ assert(RootPosition.is_ok());
+
+ return think(RootPosition, infinite, ponder, time, inc, movesToGo,
+ depth, nodes, moveTime, searchMoves);
+ }
+
+ void perft(UCIInputParser& uip) {
+
+ string token;
+ int depth, tm, n;
+ Position pos(RootPosition, RootPosition.thread());
+
+ if (!(uip >> depth))
+ return;
+
+ tm = get_system_time();
+
+ n = perft(pos, depth * OnePly);