add engine
This commit is contained in:
9
player/mod.rs
Normal file
9
player/mod.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
mod human;
|
||||
use crate::game::{Board, Move};
|
||||
|
||||
pub use human::PlayerConsole;
|
||||
|
||||
pub trait Player {
|
||||
fn request_move(&self, b: &Board) -> Result<Move, Box<dyn std::error::Error>>;
|
||||
fn name(&self) -> &str;
|
||||
}
|
Reference in New Issue
Block a user