use std::{f32::INFINITY, time::{Duration, Instant}}; use chessnost::board::Board; fn main() { let mut board = Board::new(); loop { let start = Instant::now(); let (score, pv) = board.iterative_deepening(Duration::from_secs(4)); println!("Finished in {:?}: score={:?}", start.elapsed(), score); let mov = pv[0]; println!("{:?}", mov); board.make_move(mov); board.print(); println!("Score for {:?} is now: {} (material advantage={})", board.color(), board.quiscence(-INFINITY, INFINITY), board.material_advantage()); } }