Trait Player

Source
pub trait Player<E: EndStatus> {
    // Required method
    fn reward_when_outcome_is(&self, outcome: &E) -> f32;
}
Expand description

The trait for the player.

Required Methods§

Source

fn reward_when_outcome_is(&self, outcome: &E) -> f32

The reward for each player when the game ends with the given outcome.

Implementors§