added UCI setoption command for Hash | bench 4118297

This commit is contained in:
rektdie committed 2025-03-09 15:47:16 +01:00
1 parent 5635e7deaa
commit 4312b2be0e
3 files changed
+17 -7

No files matched your search

+4 -4
View File
@@ -1,9 +1,7 @@
#pragma once
#include "board.h"
#include "search.h"
// 5 MB
constexpr int hashSize = 0x500000;
#include <vector>
// 2[colors] * 6[pieces] * 64[squares]
extern U64 zKeys[2][6][64];
@@ -28,7 +26,9 @@ public:
Move bestMove;
};
extern TTEntry TTable[hashSize];
// 5 MB
inline int hashSize = 5000000 / sizeof(TTEntry);
inline std::vector<TTEntry> TTable(hashSize);
SearchResults ReadEntry(U64 &hashKey, int depth, int alpha, int beta);
void WriteEntry(U64 &hashKey, int depth, int score, int nodeType, Move besteMove);