diff --git a/src/main.rs b/src/main.rs index 97c5cee..0b07190 100644 --- a/src/main.rs +++ b/src/main.rs @@ -81,8 +81,7 @@ impl Life { && self[i as usize][j as usize] }) .count(); - future[row][column] = - (*alive && (neighbors == 2 || neighbors == 3)) || (!*alive && neighbors == 3); + future[row][column] = neighbors == 3 || *alive && neighbors == 2; }) }); future @@ -133,7 +132,7 @@ const RENDER_DELAY: usize = 100_000; fn main() -> Status { uefi::helpers::init().unwrap(); - let mut life = Life::with_starter(&BREEDER); + let mut life = Life::with_starter(BREEDER); for _ in repeat(()) { life = life.play();