Johann made me clean up my code a bit (rust)

This commit is contained in:
Steph 2022-12-01 21:02:00 +01:00
parent 44fb8bc6a4
commit e226804c46

View File

@ -69,7 +69,7 @@ fn main() {
.len() > 0 .len() > 0
).collect(); ).collect();
if winning_boards.len() == 1 { if last_winning_boards.len() == 0 && winning_boards.len() == 1 {
let sum: i32 = winning_boards let sum: i32 = winning_boards
.iter() .iter()
.map(|(_, x)| x) .map(|(_, x)| x)