Make mvv_lva to map pieces to their material score instead of abritrary matrix
Add time limits, use anyhow crate to improve error handling, remove depth limit on quiescence search
This commit is contained in:
15
src/search/time.rs
Normal file
15
src/search/time.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
use std::time::Instant;
|
||||
|
||||
pub struct TimeInfo {
|
||||
pub time: Instant,
|
||||
pub remaining_time_in_ms: u128,
|
||||
}
|
||||
|
||||
impl TimeInfo {
|
||||
pub const fn new(time: Instant, remaining_time_in_ms: u128) -> Self {
|
||||
Self {
|
||||
time,
|
||||
remaining_time_in_ms,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user