diff --git a/src/agent.rs b/src/agent.rs index a92ec72..4541112 100644 --- a/src/agent.rs +++ b/src/agent.rs @@ -45,6 +45,7 @@ impl Agent for ManualAgent { } impl ManualAgent { + #[allow(dead_code)] pub const fn new(color: Piece) -> Self { Self { color } } @@ -69,6 +70,7 @@ impl Agent for RandomAgent { } impl RandomAgent { + #[allow(dead_code)] pub const fn new(color: Piece) -> Self { Self { color } } diff --git a/src/complexagent.rs b/src/complexagent.rs index bdcb15a..89261d8 100644 --- a/src/complexagent.rs +++ b/src/complexagent.rs @@ -156,6 +156,7 @@ impl Agent for ComplexAgent { } impl ComplexAgent { + #[allow(dead_code)] pub const fn new(color: Piece) -> Self { Self { color, diff --git a/src/game.rs b/src/game.rs index 66798f3..b2c0cbb 100644 --- a/src/game.rs +++ b/src/game.rs @@ -32,6 +32,8 @@ impl Game { pub fn step(&mut self, player_i: usize) { let player_color = self.players[player_i].color(); + // TODO! move this to `ManualAgent` as it's only really useful + // when it comes to human input loop { let player_move = self.players[player_i].next_move(&self.board);