aboutsummaryrefslogtreecommitdiff
path: root/src/player.rs
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-02-23 15:35:15 +0300
committereug-vs <eugene@eug-vs.xyz>2023-02-23 15:35:15 +0300
commita7a26f7810e9bc5fec6020324a83a2a89b69ff79 (patch)
treef6f36e359f7373141fbdbf62bcaab2358ab1f790 /src/player.rs
parent573d674bffd9275ea98abc119e747e74e2abc941 (diff)
downloadchessnost-a7a26f7810e9bc5fec6020324a83a2a89b69ff79.tar.gz
refactor: implement Player trait for Grossmeister
Diffstat (limited to 'src/player.rs')
-rw-r--r--src/player.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/player.rs b/src/player.rs
index 26cf0cc..15f4a86 100644
--- a/src/player.rs
+++ b/src/player.rs
@@ -1,7 +1,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(&self, board: Board) -> (f32, Vec<Move>);
+ fn analyze(&mut self, board: Board, duration: Duration) -> (f32, Vec<Move>);
}