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

10
main.rs
View File

@@ -1,6 +1,12 @@
mod engine;
mod game;
mod player;
fn main() {
let b = game::Board::new();
let c = game::Cell::X;
let mut engine = engine::Engine::new();
match engine.run() {
Ok(_) => println!("game over"),
Err(e) => println!("{}", e),
};
}