Skip to main content

cheats

Function cheats 

Source
fn cheats(time: &Grid<i32>, delta: Point) -> u32
Expand description

Compare two slices against each other so that the compiler can auto-vectorize the loops. Boundary checks are not needed due to the padding on the right and bottom of the grid.