encapsulated positionHistory | bench 1857933
This commit is contained in:
1 parent
aa0d34eb8e
commit
2e8c23103f
6 files changed
+34
-37
No files matched your search
+3
-1
@@ -113,6 +113,7 @@ public:
|
||||
History history;
|
||||
|
||||
std::array<std::array<int, MAX_PLY>, 2> killerMoves{};
|
||||
std::array<U64, 1000> positionHistory;
|
||||
|
||||
Stopwatch sw;
|
||||
|
||||
@@ -121,6 +122,7 @@ public:
|
||||
history.Clear();
|
||||
sw.Restart();
|
||||
killerMoves = {};
|
||||
positionHistory = {};
|
||||
}
|
||||
};
|
||||
|
||||
@@ -130,7 +132,7 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply, SearchCo
|
||||
template <searchMode mode>
|
||||
SearchResults SearchPosition(Board &board, SearchParams params, SearchContext& ctx);
|
||||
|
||||
bool IsDraw(Board &board);
|
||||
bool IsDraw(Board &board, SearchContext& ctx);
|
||||
|
||||
constexpr int moveScoreTable[6][6] = {
|
||||
105, 205, 305, 405, 505, 605,
|
||||
|
||||
Reference in new issue
Block a user