aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-08-27 00:57:17 +0300
committereug-vs <eugene@eug-vs.xyz>2023-08-27 00:57:17 +0300
commit38443955811b7c127a2b1b291c843e73bc530adb (patch)
tree8dfc5ffb748b4b925e42ae0a7b1ff886e25876a7
parentf14e25f325b001d10d025704ff76052b043dfb55 (diff)
downloadchessnost-38443955811b7c127a2b1b291c843e73bc530adb.tar.gz
feat: always print upper/lower score in UCI
-rw-r--r--src/grossmeister/search.rs8
1 files 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;
}