This commit is contained in:
2025-01-28 13:14:01 -05:00
parent afef9f1b19
commit 1803176a24
2 changed files with 11 additions and 11 deletions

View File

@@ -13,7 +13,7 @@ pub struct ManualAgent {
}
impl Agent for ManualAgent {
fn next_move(&mut self, board: &Board) -> Option<(usize, usize)> {
fn next_move(&mut self, _: &Board) -> Option<(usize, usize)> {
todo!("user input not implemented")
}
@@ -41,7 +41,7 @@ impl QueueAgent {
}
impl Agent for QueueAgent {
fn next_move(&mut self, board: &Board) -> Option<(usize, usize)> {
fn next_move(&mut self, _: &Board) -> Option<(usize, usize)> {
self.moves.pop_front()
}
@@ -59,7 +59,7 @@ pub struct AutoAgent {
}
impl Agent for AutoAgent {
fn next_move(&mut self, board: &Board) -> Option<(usize, usize)> {
fn next_move(&mut self, _: &Board) -> Option<(usize, usize)> {
todo!("next_move not implemented")
}
@@ -71,9 +71,3 @@ impl Agent for AutoAgent {
self.color
}
}
impl AutoAgent {
pub const fn new(color: Piece) -> Self {
Self { color }
}
}