-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.h
More file actions
25 lines (25 loc) · 758 Bytes
/
Copy pathsearch.h
File metadata and controls
25 lines (25 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
#include "eval.h"
#include "timeman.h"
#include "tt.h"
#include <cstdint>
#include <position.h>
namespace engine::search {
struct Session {
timeman::TimeManagement tm;
timeman::LimitsType tc;
int seldepth = 0;
uint64_t nodes = 0, qnodes = 0, lmrResearches = 0;
uint64_t tbHits = 0, ttHits = 0, ttCutoffs = 0, nullCutoffs = 0;
Value historyHeuristic[chess::SQUARE_NB][chess::SQUARE_NB]{};
chess::Move killerMoves[MAX_PLY][2]{};
chess::Move counterMoves[4096]{};
timeman::TimePoint lastLogTime;
int depth = 0;
chess::Color ogcolor;
};
void stop();
uint64_t search(const chess::Position &, const timeman::LimitsType);
bool isStopped();
extern engine::TranspositionTable tt;
} // namespace engine::search