From 573d674bffd9275ea98abc119e747e74e2abc941 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 23 Feb 2023 14:49:06 +0300 Subject: refactor: return move generation to board module --- src/player.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/player.rs (limited to 'src/player.rs') diff --git a/src/player.rs b/src/player.rs new file mode 100644 index 0000000..26cf0cc --- /dev/null +++ b/src/player.rs @@ -0,0 +1,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(&self, board: Board) -> (f32, Vec); +} -- cgit v1.2.3