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.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/board/engine.rs b/src/board/engine.rs
index 58c9eb5..985dfb7 100644
--- a/src/board/engine.rs
+++ b/src/board/engine.rs
@@ -306,10 +306,12 @@ impl Board {
beta = search_result.0 + window_size;
} else if search_result.0 <= alpha { // Alpha-cutoff
println!("Alpha cutoff {} <= {:?}", search_result.0, (alpha, beta));
+ beta = alpha;
alpha = search_result.0 - window_size * 4.0;
continue;
} else if search_result.0 >= beta { // Beta-cutoff
println!("Beta cutoff {:?} <= {}", (alpha, beta), search_result.0);
+ alpha = beta;
beta = search_result.0 + window_size * 4.0;
continue;
} else {