Function play

Source
fn play(monkeys: &[Monkey], from: usize, item: usize) -> Business
Expand description

Play 10,000 rounds adjusting the worry level modulo the product of all the monkey’s test values. Look for cycles in each path so that we don’t have to process the entire 10,000 rounds.