encapsulated killerMoves and changed it to std::array
This commit is contained in:
1 parent
ac7325f295
commit
dd6f0b94f5
5 files changed
+9
-12
No files matched your search
+3
-3
@@ -22,9 +22,6 @@ constexpr int MAX_HISTORY = 16384;
|
||||
|
||||
constexpr int inf = 100000;
|
||||
|
||||
// [id][ply]
|
||||
inline int killerMoves[2][MAX_PLY];
|
||||
|
||||
inline int lmrTable[MAX_DEPTH+1][MAX_MOVES];
|
||||
|
||||
void InitLMRTable();
|
||||
@@ -115,12 +112,15 @@ public:
|
||||
PVLine pvLine;
|
||||
History history;
|
||||
|
||||
std::array<std::array<int, MAX_PLY>, 2> killerMoves{};
|
||||
|
||||
Stopwatch sw;
|
||||
|
||||
SearchContext(){
|
||||
pvLine.Clear();
|
||||
history.Clear();
|
||||
sw.Restart();
|
||||
killerMoves = {};
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user