B:BD[
2.2508] → [
2.2508:2729]
.min_by(|(_,a),(_,b)| a.cmp(b))
.unwrap();
println!("Time: {}", step);
println!("Score: {}", score);
let (last_called,_) = draws.iter()
.filter(|(_,w)| *w == &step)
.next()
.fold(None, |acc, (score,step)| match acc {
None => Some((score,step,score,step)),
Some((score1,step1,score2,step2)) => {
let (score1,step1) = if step < step1 {
(score,step)
} else {
(score1,step1)
};
let (score2,step2) = if step > step2 {
(score,step)
} else {
(score2,step2)
};
Some((score1,step1,score2,step2))
}
})