refactor, add lobby
This commit is contained in:
@@ -6,5 +6,5 @@ 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;
|
||||
fn message(&self, msg: &str) -> Result<(), Box<dyn std::error::Error>>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user