Skip to main content

turns

Function turns 

Source
pub fn turns<R>(
    file: &str,
    initial: R,
    commands: &[R::Command],
) -> Result<ReplayRun, String>
Expand description

Re-runs commands from initial by the rules, hashing the state before them and after each: the run of a turn game’s record file. A refused command changes nothing and says why.