Files
rttt/player/mod.rs
Dmitry Fedotov e84d6c6054 add engine
2025-04-06 18:37:49 +03:00

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