Skip to content

Commit d77ba34

Browse files
authored
Merge pull request #14 from eboatwright/dev
v3.0.7 (for real this time 😅)
2 parents 2815d21 + f66c2ee commit d77ba34

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bot.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use crate::opening_book::OpeningBook;
1010
use crate::Board;
1111

1212
pub const MAX_SEARCH_EXTENSIONS: u8 = 16;
13+
pub const FUTILITY_PRUNING_THESHOLD_PER_PLY: i32 = 60;
1314

1415
pub struct Bot {
1516
time_to_think: f32,
@@ -216,7 +217,7 @@ impl Bot {
216217

217218
// Reverse Futility Pruning
218219
if depth_left <= 4
219-
&& static_eval - (70 * depth_left as i32) >= beta {
220+
&& static_eval - (FUTILITY_PRUNING_THESHOLD_PER_PLY * depth_left as i32) >= beta {
220221
return static_eval;
221222
}
222223

0 commit comments

Comments
 (0)