encapsulated history

This commit is contained in:
rektdie committed 2025-04-11 02:49:10 +02:00
1 parent 818b549cba
commit 91ec9282a0
5 files changed
+16 -19

No files matched your search

+4 -3
View File
@@ -72,8 +72,6 @@ public:
}
};
inline History history;
class PVLine {
private:
int length[MAX_PLY] = {};
@@ -112,10 +110,13 @@ public:
U64 nodesToGo = 0;
bool doingNullMove = false;
PVLine pvLine;
History history;
SearchContext(){
pvLine.Clear();
history.Clear();
}
};
@@ -137,5 +138,5 @@ constexpr int moveScoreTable[6][6] = {
100, 200, 300, 400, 500, 600
};
void ListScores(Board &board);
void ListScores(Board &board, SearchContext& ctx);
}