aboutsummaryrefslogtreecommitdiff
path: root/src/player.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.rs')
-rw-r--r--src/player.rs7
1 files changed, 7 insertions, 0 deletions
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<Move>);
+}