aboutsummaryrefslogtreecommitdiff
path: root/src/board/engine.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/board/engine.rs')
-rw-r--r--src/board/engine.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/board/engine.rs b/src/board/engine.rs
index 3977258..2c294a3 100644
--- a/src/board/engine.rs
+++ b/src/board/engine.rs
@@ -384,7 +384,7 @@ impl Board {
let mut depth = 1;
let mut alpha = -INFINITY;
let mut beta = INFINITY;
- let window_size = 0.25;
+ let window_size = 0.5;
let mut gradual_widening_counter = 0;
while depth <= max_depth {
@@ -411,13 +411,13 @@ impl Board {
println!("Alpha cutoff {} <= {:?}", search_result.0, (alpha, beta));
gradual_widening_counter += 1;
beta = alpha;
- alpha = search_result.0 - window_size * 4.0f32.powi(gradual_widening_counter);
+ alpha = search_result.0 - window_size * 2.0f32.powi(gradual_widening_counter);
continue;
} else if search_result.0 >= beta { // Beta-cutoff
println!("Beta cutoff {:?} <= {}", (alpha, beta), search_result.0);
gradual_widening_counter += 1;
alpha = beta;
- beta = search_result.0 + window_size * 4.0f32.powi(gradual_widening_counter);
+ beta = search_result.0 + window_size * 2.0f32.powi(gradual_widening_counter);
continue;
} else {
panic!("Can this ever be possible? (probably not)");