[][src]Trait rust_warrior::player::Player

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

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

fn play_turn(&self, warrior: &mut Warrior)

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.

Loading content...

Implementors

Loading content...