Exercise: Coloring Cells by Shortest Distance
Try creating colored paths of cells to see which points are close to each other.
We'll cover the following...
We'll cover the following...
Problem statement
If a distances
object represents some list of cells (perhaps a solution path, perhaps not), we'd like to be able to query a cell for the distance (for each cell in the grid) from any of the cells in the first distances
object.
That is to say:
## given a 10x10 grid, we first ask for
...