mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Write perft(N-1) into cout
So that one can redirect cout to /dev/null and only print print cerr in the terminal (for more accurate speed tests). Suggested by Marco. No functional change.
This commit is contained in:
parent
6044f25d71
commit
2efeded6e3
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ void benchmark(const Position& current, istream& is) {
|
||||||
pos.do_move(*it, si);
|
pos.do_move(*it, si);
|
||||||
uint64_t cnt = limits.depth > 1 ? Search::perft(pos, (limits.depth - 1) * ONE_PLY) : 1;
|
uint64_t cnt = limits.depth > 1 ? Search::perft(pos, (limits.depth - 1) * ONE_PLY) : 1;
|
||||||
pos.undo_move(*it);
|
pos.undo_move(*it);
|
||||||
cerr << move_to_uci(*it, pos.is_chess960()) << ": " << cnt << endl;
|
cout << move_to_uci(*it, pos.is_chess960()) << ": " << cnt << endl;
|
||||||
nodes += cnt;
|
nodes += cnt;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue