aboutsummaryrefslogtreecommitdiff
path: root/src/player.rs
blob: 15f4a8607f8410777a1516c0bd36a410b82d56a9 (plain)
1
2
3
4
5
6
7
8
use std::time::Duration;
use crate::{board::Board, moves::Move};

pub trait Player {
    /// Analyze a position on a given board, giving
    /// the score for the side to move and Principal Variation.
    fn analyze(&mut self, board: Board, duration: Duration) -> (f32, Vec<Move>);
}