encapsulated TT | bench 1857933

This commit is contained in:
rektdie committed 2025-04-12 22:43:39 +02:00
1 parent c08c545335
commit 53f6ae17bc
7 files changed
+43 -49

No files matched your search

+4 -17
View File
@@ -5,6 +5,7 @@
#include "move.h"
#include <algorithm>
#include "stopwatch.h"
#include "tt.h"
namespace SEARCH {
@@ -26,23 +27,6 @@ inline int lmrTable[MAX_DEPTH+1][MAX_MOVES];
void InitLMRTable();
class SearchResults {
public:
int score = 0;
Move bestMove = Move();
SearchResults(){}
SearchResults(int pScore, Move pMove) {
score = pScore;
bestMove = pMove;
}
SearchResults(int pScore) {
score = pScore;
}
};
class History {
private:
int historyMoves[2][64][64];
@@ -116,11 +100,14 @@ public:
std::array<U64, 1000> positionHistory{};
TTable TT;
Stopwatch sw;
SearchContext(){
pvLine.Clear();
history.Clear();
TT.Clear();
sw.Restart();
killerMoves = {};
positionHistory = {};