mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 18:17:02 +08:00
Tidy up benchmark.cpp
Node count is different just becuase now we don't log on "bench.txt" file anymore so that we avoid some calls to pretty_pv() that calls Position::do_move(). Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
#if !defined(SEARCH_H_INCLUDED)
|
||||
#define SEARCH_H_INCLUDED
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include "move.h"
|
||||
#include "types.h"
|
||||
|
||||
@@ -52,7 +54,8 @@ struct SearchStack {
|
||||
|
||||
struct SearchLimits {
|
||||
|
||||
SearchLimits() {}
|
||||
SearchLimits() { memset(this, 0, sizeof(SearchLimits)); }
|
||||
|
||||
SearchLimits(int t, int i, int mtg, int mt, int md, int mn, bool inf, bool pon)
|
||||
: time(t), increment(i), movesToGo(mtg), maxTime(mt), maxDepth(md),
|
||||
maxNodes(mn), infinite(inf), ponder(pon) {}
|
||||
|
||||
Reference in New Issue
Block a user