basically working version
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
mod human;
|
||||
use crate::game::{Board, Move};
|
||||
use crate::game::{Board, Cell, Move};
|
||||
|
||||
pub use human::PlayerConsole;
|
||||
|
||||
pub trait Player {
|
||||
fn start_new_game(&mut self, p: Cell) -> Result<(), Box<dyn std::error::Error>>;
|
||||
fn request_move(&self, b: &Board) -> Result<Move, Box<dyn std::error::Error>>;
|
||||
fn name(&self) -> &str;
|
||||
}
|
||||
|
Reference in New Issue
Block a user