diff options
| author | Micha White <botahamec@outlook.com> | 2023-12-22 13:39:49 -0500 |
|---|---|---|
| committer | Micha White <botahamec@outlook.com> | 2023-12-22 13:39:49 -0500 |
| commit | ef59ee8eb6562dfd724c1cb0bbd37aebc7d798ad (patch) | |
| tree | ccc8f747268a587ccd285b69083dd565c144217a /engine/src/search.rs | |
| parent | bc75b075ef59a6b3b04b8a7b060809b64e8886d0 (diff) | |
Move logic around
Diffstat (limited to 'engine/src/search.rs')
| -rw-r--r-- | engine/src/search.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engine/src/search.rs b/engine/src/search.rs index b9cb5e6..b8fd982 100644 --- a/engine/src/search.rs +++ b/engine/src/search.rs @@ -4,10 +4,12 @@ use std::time::Instant; use model::{CheckersBitBoard, Move, PieceColor, PossibleMoves}; +use crate::engine::EvaluationTask; +use crate::Frontend; use crate::{ eval::{eval_position, Evaluation}, lazysort::LazySort, - EvaluationTask, Frontend, TranspositionTableRef, + TranspositionTableRef, }; unsafe fn sort_moves( @@ -182,13 +184,13 @@ pub fn search(task: Arc<EvaluationTask>, frontend: &dyn Frontend) -> Evaluation if alpha.is_force_loss() { alpha = Evaluation::NULL_MIN; } else { - alpha = eval.add(-0.125); + alpha = eval.add_f32(-0.125); } if beta.is_force_win() { beta = Evaluation::NULL_MAX; } else { - beta = eval.add(0.125); + beta = eval.add_f32(0.125); } depth += 1; |
