game
This commit is contained in:
12
src/agent.rs
12
src/agent.rs
@@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user