pub trait Bot<R: TurnRules> {
// Required method
fn choose(&mut self, rules: &R) -> R::Command;
}Expand description
A player made of code. play asks it for every command of the sides
it plays.
A bot must never learn what the game hides from its players (the luck to come, above all): any randomness of its own comes from a seed it was built with. The same seed and the same states must give the same commands.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".