encapsulated TT

This commit is contained in:
rektdie committed 2025-04-11 22:28:16 +02:00
1 parent e7079c3c73
commit 8ca878275a
6 files changed
+28 -26

No files matched your search

+5 -7
View File
@@ -6,6 +6,8 @@
#include <algorithm>
#include "stopwatch.h"
class TTable;
namespace SEARCH {
enum searchMode {
@@ -111,19 +113,15 @@ public:
PVLine pvLine;
History history;
TTable* TT;
std::array<std::array<int, MAX_PLY>, 2> killerMoves{};
std::array<U64, 1000> positionHistory;
Stopwatch sw;
SearchContext(){
pvLine.Clear();
history.Clear();
sw.Restart();
killerMoves = {};
positionHistory = {};
}
SearchContext();
~SearchContext();
};
template <bool isPV, searchMode mode>