use std::time::Instant; use chessnost::board::Board; fn main() { let fen = String::from("r3k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R3K2R w KQkq - "); let mut board = Board::from_FEN(fen); let depth = 4; let start = Instant::now(); let result = board.perft(depth, false); println!("Perft({}) finished in {:?}: {:?}", depth, start.elapsed(), result); }