Function bump_octopus

Source
fn bump_octopus(
    grid: &mut [u8],
    flashed: &mut [bool],
    todo: &mut Vec<usize>,
    index: usize,
)
Expand description

Increments an octopus’s energy. If it reaches 10, it flashes and is added to the queue.