Implemented perft

Patch from Joona with extension to benchmark and inclusion
of Depth(0) moves generation by me.

Note that to test also qsearch and in particulary checks
generations a change in the end condition is needed.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Joona Kiiski
2009-10-02 07:09:24 +03:00
committed by Marco Costalba
parent d9b920acfb
commit fa49311b36
5 changed files with 57 additions and 5 deletions

View File

@@ -63,7 +63,7 @@ int main(int argc, char *argv[]) {
if (string(argv[1]) != "bench" || argc < 4 || argc > 8)
cout << "Usage: stockfish bench <hash size> <threads> "
<< "[time = 60s] [fen positions file = default] "
<< "[time, depth or node limited = time] "
<< "[time, depth, perft or node limited = time] "
<< "[timing file name = none]" << endl;
else
{