Function minimax::util::battle_royale
source · pub fn battle_royale<G, S1, S2>(s1: &mut S1, s2: &mut S2) -> Option<usize>where
G: Game,
G::S: Default,
S1: Strategy<G>,
S2: Strategy<G>,
Expand description
Play a complete, new game with players using the two provided strategies.
Returns None
if the game ends in a draw, or Some(0)
, Some(1)
if the
first or second strategy won, respectively.