Skip to main content

play_try

Function play_try 

Source
pub fn play_try<S, R: Sides>(
    stage: &S,
    entrant: &dyn Entrant<S, R>,
    seed: u64,
    turns: u32,
) -> Result<PlayedTry, PlayError<R>>
where R::Command: Clone, R::Outcome: Debug,
Expand description

entrant plays stage once from seed, stopped at turn turns: the try, the commands applied, and the entrant’s record of it (Entrant::record).