diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-08-27 00:57:17 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-08-27 00:57:17 +0300 |
commit | 38443955811b7c127a2b1b291c843e73bc530adb (patch) | |
tree | 8dfc5ffb748b4b925e42ae0a7b1ff886e25876a7 | |
parent | f14e25f325b001d10d025704ff76052b043dfb55 (diff) | |
download | chessnost-38443955811b7c127a2b1b291c843e73bc530adb.tar.gz |
feat: always print upper/lower score in UCI
-rw-r--r-- | src/grossmeister/search.rs | 8 |
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; } |