Files
rttt/player/mod.rs
2025-04-07 02:28:36 +03:00

11 lines
298 B
Rust

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