blob: ffdc9400c7e7acfd084f254cf93b12a092edd219 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
use std::time::Instant;
use chessnost::{board::{Board, io::IO}, grossmeister::Grossmeister};
fn main() {
let fen = String::from("r3k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R3K2R w KQkq - ");
let board = Board::from_FEN(fen);
let mut gm = Grossmeister::new(board);
let depth = 4;
let start = Instant::now();
let result = gm.perft(depth, false);
println!("Perft({}) finished in {:?}: {:?}", depth, start.elapsed(), result);
}
|