added seldepth | bench 4800210
This commit is contained in:
1 parent
f1b9c94fec
commit
b7eafdbd29
2 files changed
+11
No files matched your search
@@ -148,6 +148,9 @@ static SearchResults Quiescence(Board& board, int alpha, int beta, int ply, Sear
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ply > ctx.seldepth)
|
||||||
|
ctx.seldepth = ply;
|
||||||
|
|
||||||
int bestScore = NNUE::net.Evaluate(board);
|
int bestScore = NNUE::net.Evaluate(board);
|
||||||
ctx.ss[ply].eval = bestScore;
|
ctx.ss[ply].eval = bestScore;
|
||||||
@@ -223,6 +226,10 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ply > ctx.seldepth)
|
||||||
|
ctx.seldepth = ply;
|
||||||
|
|
||||||
|
|
||||||
ctx.pvLine.SetLength(ply);
|
ctx.pvLine.SetLength(ply);
|
||||||
if (ply && (IsDraw(board, ctx))) return 0;
|
if (ply && (IsDraw(board, ctx))) return 0;
|
||||||
|
|
||||||
@@ -464,6 +471,7 @@ static SearchResults ID(Board &board, SearchParams params, SearchContext& ctx) {
|
|||||||
if constexpr (mode == normal || mode == nodesMode) {
|
if constexpr (mode == normal || mode == nodesMode) {
|
||||||
std::cout << "info ";
|
std::cout << "info ";
|
||||||
std::cout << "depth " << depth;
|
std::cout << "depth " << depth;
|
||||||
|
std::cout << " seldepth " << ctx.seldepth;
|
||||||
std::cout << " time " << elapsed;
|
std::cout << " time " << elapsed;
|
||||||
std::cout << " score cp " << UTILS::ConvertToWhiteRelative(board, safeResults.score);
|
std::cout << " score cp " << UTILS::ConvertToWhiteRelative(board, safeResults.score);
|
||||||
std::cout << " nodes " << ctx.nodes << " nps " << int(ctx.nodes/ctx.sw.GetElapsedSec());
|
std::cout << " nodes " << ctx.nodes << " nps " << int(ctx.nodes/ctx.sw.GetElapsedSec());
|
||||||
@@ -493,6 +501,7 @@ static SearchResults ID(Board &board, SearchParams params, SearchContext& ctx) {
|
|||||||
template <searchMode mode>
|
template <searchMode mode>
|
||||||
SearchResults SearchPosition(Board &board, SearchParams params, SearchContext& ctx) {
|
SearchResults SearchPosition(Board &board, SearchParams params, SearchContext& ctx) {
|
||||||
ctx.searchStopped = false;
|
ctx.searchStopped = false;
|
||||||
|
ctx.seldepth = 0;
|
||||||
if constexpr (mode != bench) {
|
if constexpr (mode != bench) {
|
||||||
ctx.nodes = 0;
|
ctx.nodes = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -95,6 +95,8 @@ public:
|
|||||||
U64 nodes = 0;
|
U64 nodes = 0;
|
||||||
U64 nodesToGo = 0;
|
U64 nodesToGo = 0;
|
||||||
int timeToSearch = 0;
|
int timeToSearch = 0;
|
||||||
|
|
||||||
|
int seldepth = 0;
|
||||||
|
|
||||||
bool doingNullMove = false;
|
bool doingNullMove = false;
|
||||||
bool searchStopped = false;
|
bool searchStopped = false;
|
||||||
|
|||||||
Reference in new issue
Block a user