comment
This commit is contained in:
parent
ec0eb7f849
commit
cc14073582
@ -45,6 +45,7 @@ impl Agent for ManualAgent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl ManualAgent {
|
impl ManualAgent {
|
||||||
|
#[allow(dead_code)]
|
||||||
pub const fn new(color: Piece) -> Self {
|
pub const fn new(color: Piece) -> Self {
|
||||||
Self { color }
|
Self { color }
|
||||||
}
|
}
|
||||||
@ -69,6 +70,7 @@ impl Agent for RandomAgent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl RandomAgent {
|
impl RandomAgent {
|
||||||
|
#[allow(dead_code)]
|
||||||
pub const fn new(color: Piece) -> Self {
|
pub const fn new(color: Piece) -> Self {
|
||||||
Self { color }
|
Self { color }
|
||||||
}
|
}
|
||||||
|
|||||||
@ -156,6 +156,7 @@ impl Agent for ComplexAgent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl ComplexAgent {
|
impl ComplexAgent {
|
||||||
|
#[allow(dead_code)]
|
||||||
pub const fn new(color: Piece) -> Self {
|
pub const fn new(color: Piece) -> Self {
|
||||||
Self {
|
Self {
|
||||||
color,
|
color,
|
||||||
|
|||||||
@ -32,6 +32,8 @@ impl Game {
|
|||||||
pub fn step(&mut self, player_i: usize) {
|
pub fn step(&mut self, player_i: usize) {
|
||||||
let player_color = self.players[player_i].color();
|
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 {
|
loop {
|
||||||
let player_move = self.players[player_i].next_move(&self.board);
|
let player_move = self.players[player_i].next_move(&self.board);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user