pub fn flash(grid: &mut OctopusGrid, x: isize, y: isize) -> usize
Expand description

Given a coordinate on the grid, attempt to flash by increasing the energy level of the octopus at that coordinate, then recursing to any other octopuses that should attempt to flash as a result.

Returns the number of octopuses that flashed.