This commit is contained in:
Simon Gardling 2025-02-08 22:49:52 -05:00
parent ec0eb7f849
commit cc14073582
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D
3 changed files with 5 additions and 0 deletions

View File

@ -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 }
}

View File

@ -156,6 +156,7 @@ impl Agent for ComplexAgent {
}
impl ComplexAgent {
#[allow(dead_code)]
pub const fn new(color: Piece) -> Self {
Self {
color,

View File

@ -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);