aboutsummaryrefslogtreecommitdiff
path: root/src/player.rs
blob: 02570241be2efa5a4212059c52a12b9e0f24154a (plain)
1
2
3
4
5
6
7
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) -> (f32, Vec<Move>);
}