pub trait Sides: TurnRules {
type Side: Copy + Eq + Debug;
// Required methods
fn side_to_move(&self) -> Self::Side;
fn turn(&self) -> u32;
}Expand description
A game whose state says whose move it is and which turn it is, so a loop can ask the right bot for each command.
Required Associated Types§
Required Methods§
Sourcefn side_to_move(&self) -> Self::Side
fn side_to_move(&self) -> Self::Side
Who issues the next command.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".