let mut seesaw_simulation = seesawsimulation::new(); seesaw_simulation.set_specification("arcane"); for _ in 0..seesaw_simulation.preestablished_cycles() { seesaw_simulation.add_weight("left", weight::new("scorn")).expect("failed to add weight"); seesaw_simulation.balance().expect("balancing failed"); if seesaw_simulation.is_unbalanced() { seesaw_simulation.start_over_from_origin().expect("failed to restart correctly"); } else { seesaw_simulation.add_fun().expect("failed to add fun"); } }