add engine

This commit is contained in:
Dmitry Fedotov
2025-04-06 18:37:49 +03:00
parent aae44cd587
commit e84d6c6054
8 changed files with 246 additions and 33 deletions

9
player/mod.rs Normal file
View 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;
}