pub trait Player: Send + Sync {
    fn play_turn(&mut self, warrior: &Warrior);
}
Expand description

An implementation of this trait is provided when rust-warrior is executed to generate your initial game files. Your struct will be named according to the name you chose.

Required Methods

This method is called by the game engine repeatedly, once per turn. See Warrior to see which actions you can instruct the Warrior to take.

Implementors