rust_warrior/
player.rs

1//! contains the trait exposed to the player for controlling the Warrior
2
3use crate::Warrior;
4
5/// An implementation of this trait is provided when `rust-warrior`
6/// is executed to generate your initial game files. Your struct will
7/// be named according to the name you chose.
8pub trait Player: Send + Sync {
9    /// This method is called by the game engine repeatedly, once per turn.
10    /// See [`Warrior`](crate::warrior::Warrior) to see which actions you
11    /// can instruct the Warrior to take.
12    fn play_turn(&mut self, warrior: &Warrior);
13}