summaryrefslogtreecommitdiff
path: root/src/testsearch.c
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2026-08-23 11:28:49 -0700
committerScott Gasch <[email protected]>2026-08-23 11:28:49 -0700
commitdf8facc22815f9eca0897e27ccce30701ba95322 (patch)
treebf90ad7ff19383fbac9b0a163f31bf3a9fb11fbe /src/testsearch.c
parentdc0c9dbf405095a6483705b153f4c85c64499d4e (diff)
Clean X64 build and ported GetAttacks to x64.
Diffstat (limited to 'src/testsearch.c')
-rw-r--r--src/testsearch.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testsearch.c b/src/testsearch.c
index 4290a4f..380dfba 100644
--- a/src/testsearch.c
+++ b/src/testsearch.c
@@ -42,7 +42,7 @@ TestSearch(void)
SEARCHER_THREAD_CONTEXT *ctx;
POSITION pos;
ULONG u;
- FLAG fOver;
+ GAME_RESULT result;
FLAG fPost = g_Options.fShouldPost;
FLAG fRet = FALSE;
@@ -79,7 +79,7 @@ TestSearch(void)
#if (PERF_COUNTERS && MP)
ClearHelperThreadIdleness();
#endif
- fOver = Iterate(ctx);
+ result = Iterate(ctx);
//
// How long did that take?
@@ -94,7 +94,7 @@ TestSearch(void)
//
// Did we get a sane move?
//
- if (GAME_NOT_OVER == fOver)
+ if (RESULT_IN_PROGRESS == result.eResult)
{
if (FALSE == SanityCheckMove(&pos, ctx->mvRootMove))
{
@@ -104,11 +104,11 @@ TestSearch(void)
}
}
#ifdef DEBUG
- else if (GAME_WHITE_WON == fOver)
+ else if (RESULT_WHITE_WON == result.eResult)
{
ASSERT(InCheck(&pos, BLACK));
}
- else if (GAME_BLACK_WON == fOver)
+ else if (RESULT_BLACK_WON == result.eResult)
{
ASSERT(InCheck(&pos, WHITE));
}