From 54d024aae8ca232e8da4cf4620ca9c5b3b599f23 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 11 Aug 2026 16:56:18 +0200 Subject: fixing transpoition table bug --- src/bot.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/bot.cpp b/src/bot.cpp index 13e3c57..14f7cef 100644 --- a/src/bot.cpp +++ b/src/bot.cpp @@ -210,11 +210,10 @@ static int search(int depth, Game *b, int alpha, int beta, int ply) { if (!searchStopped) { Flag flag = EXACT; - if (bestScore > beta) { - flag = UPPERBOUND; - } - if (bestScore < alphaOrig) { + if (bestScore >= beta) { flag = LOWERBOUND; + } else if (bestScore <= alphaOrig) { + flag = UPPERBOUND; } (*b->Transpositions)[gameHash] = { -- cgit v1.2.3