Fill every empty room in a grid of walls, gates and rooms with its distance to the nearest gate, moving up, down, left or right, leaving rooms that cannot reach a gate as they are.
Loading content...