From ecacbf2e96070a6119446711160399a17b0b3138 Mon Sep 17 00:00:00 2001 From: Arseniy <93079612+codedeliveryservice@users.noreply.github.com> Date: Sun, 17 Sep 2023 19:28:58 +0300 Subject: [PATCH] Use TT score whenever possible (+4 tokens) Score of Dev vs Main: 266 - 199 - 413 [0.538] 878 ... Dev playing White: 134 - 97 - 208 [0.542] 439 ... Dev playing Black: 132 - 102 - 205 [0.534] 439 ... White vs Black: 236 - 229 - 413 [0.504] 878 Elo difference: 26.6 +/- 16.7, LOS: 99.9 %, DrawRatio: 47.0 % SPRT: llr 2.97 (101.0%), lbound -2.94, ubound 2.94 - H1 was accepted --- Chess-Challenge/src/My Bot/MyBot.cs | 2 ++ 1 file changed, 2 insertions(+) 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;