monster-ugi
is a fairy chess engine wrapper written in Rust for engines written using the monster-chess
move generation library. It easily allows you to expose an API for your engine, and connect it to one of the UCI, UAI, or UGI protocols. It primarily aims for your engine to be compatible with cutegames. Cutegames uses the UGI protocol, which is a superset of the existing UCI and UAI protocols respectfully. To use it, implement the EngineBehavior
trait:
```rust
impl
fn get_engine_info(&mut self) -> EngineInfo {
EngineInfo {
name: "Random",
author: "Corman"
}
}
fn is_ready(&mut self) -> bool {
true
}
fn stop_search(&mut self) {}
} ```
Then create an instance of engine:
rust
let engine = Engine {
behavior: RandomEngine::new(thread_rng()),
game: Chess::create()
}
and run UGI.
rust
run_ugi(engine);
monster-ugi
available under the
MIT license. See
LICENSE for the full
license text.