From f51c995a3e64047a33b8dd936f4cfc5bf5e2df5c Mon Sep 17 00:00:00 2001 From: Jeremy Hertel Date: Thu, 30 Nov 2023 23:17:11 -0600 Subject: [PATCH] search: fix wrong score being sent in info --- internal/search/negamax.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/search/negamax.go b/internal/search/negamax.go index 04680c4..14a53a4 100644 --- a/internal/search/negamax.go +++ b/internal/search/negamax.go @@ -72,7 +72,7 @@ func (s *NegamaxSearcher) Search(position *chess.Position, depth int, print bool if print { nps := float64(s.nodes) / float64(elapsed.Milliseconds()) - fmt.Printf("info depth %d score cp %d nodes %d nps %f pv %s time %d tbhits %d\n", d, bestScore, s.nodes, nps, s.getPV(), elapsed.Milliseconds(), s.ttable.Hits()) + fmt.Printf("info depth %d score cp %d nodes %d nps %f pv %s time %d tbhits %d\n", d, score, s.nodes, nps, s.getPV(), elapsed.Milliseconds(), s.ttable.Hits()) } if s.stop {