Files
rttt/player/mod.rs

10 lines
207 B
Rust
Raw Normal View History

2025-04-06 18:37:49 +03:00
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;
}