Send stop inconditonnaly
This commit is contained in:
parent
eb840f5b93
commit
256c56d841
|
@ -365,14 +365,9 @@ impl<Fi: Read, Fo: Write> UciEngine<Fi, Fo> {
|
|||
}
|
||||
}
|
||||
pub fn stop(&mut self) -> Result<(), &'static str> {
|
||||
match self.player[self.side_to_move().to_index()] {
|
||||
Player::Human { .. } => Err("Not a machine to play for current color."),
|
||||
Player::Engine { .. } => {
|
||||
self.push(GuiCommand::Stop);
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
use chess::{Color, Piece, Square};
|
||||
|
|
Loading…
Reference in New Issue