Skip to content

Commit

Permalink
search: fix wrong score being sent in info
Browse files Browse the repository at this point in the history
  • Loading branch information
e0ff committed Dec 1, 2023
1 parent e01d17b commit f51c995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/search/negamax.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f51c995

Please sign in to comment.