diff --git a/Chess-Challenge/src/My Bot/MyBot.cs b/Chess-Challenge/src/My Bot/MyBot.cs index 2a8593d..598fbc0 100644 --- a/Chess-Challenge/src/My Bot/MyBot.cs +++ b/Chess-Challenge/src/My Bot/MyBot.cs @@ -233,6 +233,8 @@ private int AlphaBeta(int depth, int alpha, int beta, bool nullMoveAllowed = tru ttMove = default; else if (!root && ttDepth >= depth && (ttFlag != 3 && ttScore >= beta || ttFlag != 2 && ttScore <= alpha)) return ttScore; + else + staticScore = ttScore; bool pvNode = alpha != beta - 1;