ID went further than MAX_DEPTH | bench 3761943

This commit is contained in:
rektdie committed 2025-03-28 00:42:13 +01:00
1 parent 1279a11808
commit 9624e565fd
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -19,7 +19,7 @@ inline PVLine pvLine;
Stopwatch sw;
void InitLMRTable() {
for (int depth = 0; depth < MAX_DEPTH; depth++) {
for (int depth = 0; depth <= MAX_DEPTH; depth++) {
for (int move = 0; move < MAX_MOVES; move++) {
if (depth == 0 || move == 0) {
lmrTable[depth][move] = 0;
@@ -341,7 +341,7 @@ static SearchResults ID(Board &board, SearchParams params) {
int elapsed = 0;
sw.Restart();
for (int depth = 1; depth <= 99; depth++) {
for (int depth = 1; depth <= MAX_DEPTH; depth++) {
timeToSearch = std::max((fullTime / 20) + (inc / 2), 4);
int softTime = timeToSearch * 0.65;