1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
pub mod bot_iterative_parallel_mvv_lva; pub mod basic; pub mod lazy_smp; use piece_move::BitMove; pub struct BestMove { best_move: Option<BitMove>, score: i16, } impl BestMove { pub fn new(score: i16) -> Self { BestMove { best_move: None, score: score, } } pub fn negate(mut self) -> Self { self.score = self.score.wrapping_neg(); self } }