From 38443955811b7c127a2b1b291c843e73bc530adb Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 27 Aug 2023 00:57:17 +0300 Subject: feat: always print upper/lower score in UCI --- src/grossmeister/search.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/grossmeister/search.rs b/src/grossmeister/search.rs index d8db1e2..6b2048d 100644 --- a/src/grossmeister/search.rs +++ b/src/grossmeister/search.rs @@ -236,18 +236,14 @@ impl Grossmeister { gradual_widening_counter += 1; beta = alpha + window_size * 0.1; alpha = search_result.0 - window_size * 2.0f32.powi(gradual_widening_counter); - if self.debug { - println!("info score upperbound {:.0}", beta * 100.0); - } + println!("info score upperbound {:.0}", beta * 100.0); continue; } if search_result.0 >= beta { // Beta-cutoff gradual_widening_counter += 1; alpha = beta - window_size * 0.1; beta = search_result.0 + window_size * 2.0f32.powi(gradual_widening_counter); - if self.debug { - println!("info score lowerbound {:.0}", alpha * 100.0); - } + println!("info score lowerbound {:.0}", alpha * 100.0); continue; } -- cgit v1.2.3