Grid Spiral Search Formula
For Across the Galaxy, I looked for a function that will “find the closest open space on a grid in any direction.” It took some google-fu to find it, so I’ll document it here and save someone else (or future me!) some work.