10 lines
207 B
Rust
10 lines
207 B
Rust
![]() |
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;
|
||
|
}
|