Skip to content

Commit

Permalink
πŸ› FIX: Fix MultiPV output
Browse files Browse the repository at this point in the history
  • Loading branch information
ianagbip1oti committed Oct 3, 2024
1 parent 22770bb commit d1a7fbe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/search_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ impl SearchTree {
let is_chess960 = self.search_options.is_chess960;

for (idx, edge) in moves.iter().enumerate().take(self.search_options.multi_pv) {
info_str.clear();
info_str.push_str("info ");
write!(info_str, "depth {} ", depth.max(1)).unwrap();
write!(info_str, "seldepth {} ", sel_depth.max(1)).unwrap();
Expand Down

0 comments on commit d1a7fbe

Please sign in to comment.