Skip to content

Commit

Permalink
rename uci::Engine to uci::UciEngine
Browse files Browse the repository at this point in the history
  • Loading branch information
bsamseth committed Jan 1, 2024
1 parent 78b2014 commit 1b6731c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion goldfish/engine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub struct Engine {
searcher: Option<std::thread::JoinHandle<()>>,
}

impl uci::Engine for Engine {
impl uci::UciEngine for Engine {
fn name(&self) -> String {
format!("Goldfish {}", env!("CARGO_PKG_VERSION"))
}
Expand Down
4 changes: 2 additions & 2 deletions goldfish/uci/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use types::UciCommand;
pub use types::{Info, InfoPart};

/// Engines must implement this trait to be compatible with this crate.
pub trait Engine {
pub trait UciEngine {
/// The name of the engine, possibly including a version number.
///
/// This will be sent to the GUI in response to a `uci` command, and
Expand Down Expand Up @@ -99,7 +99,7 @@ pub enum UciError {
///
/// It will _not_ return an error if it encounters an invalid UCI command. In this case the
/// error message will be logged to stderr, and otherwise ignored.
pub fn start(mut engine: impl Engine) -> Result<(), UciError> {
pub fn start(mut engine: impl UciEngine) -> Result<(), UciError> {
let mut game = None;
let mut searching = false;

Expand Down

0 comments on commit 1b6731c

Please sign in to comment.