diff options
| author | Micha White <botahamec@outlook.com> | 2023-12-21 20:55:12 -0500 |
|---|---|---|
| committer | Micha White <botahamec@outlook.com> | 2023-12-21 20:55:12 -0500 |
| commit | 508b4de467cfc6ccb594153a2724fc3e8871bf9b (patch) | |
| tree | 564c128fd4584e3f0bdf312f0615bc173e268735 /engine/src/lib.rs | |
| parent | 76552c16b79f9c73ed2afd74ee0e17f175477a6a (diff) | |
Split up search and eval
Diffstat (limited to 'engine/src/lib.rs')
| -rw-r--r-- | engine/src/lib.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engine/src/lib.rs b/engine/src/lib.rs index 599ba08..3a5f62f 100644 --- a/engine/src/lib.rs +++ b/engine/src/lib.rs @@ -10,14 +10,15 @@ use std::time::Duration; use parking_lot::Mutex; -use eval::{evaluate, Evaluation}; +use eval::Evaluation; +use search::search; pub use model::{CheckersBitBoard, Move, PieceColor, PossibleMoves}; pub use transposition_table::{TranspositionTable, TranspositionTableRef}; mod eval; mod lazysort; -//mod tablebase; +mod search; mod transposition_table; pub const ENGINE_NAME: &str = "Ampere"; @@ -224,7 +225,7 @@ impl<'a> Engine<'a> { *pondering_task = Some(task_ref.clone()); } - let thread = std::thread::spawn(move || evaluate(task_ref, self.frontend)); + let thread = std::thread::spawn(move || search(task_ref, self.frontend)); let mut thread_ptr = self.current_thread.lock(); *thread_ptr = Some(thread); } |
