I have a project that makes dungeons.
Once certain width and height parameters are met they are changed to red.
Those are now considered Big Rooms.
Once those Big rooms are created I store the Big Room's UID in an array.
I need to find the three closest Big Rooms to a selected Big Room, then do that for all the following Big Rooms.
I don't know how to pick one instance and find the others inside of a for loop using the UID array.
Then, I want to store the distances in either another array or instance variables with the starting Big Room's UID, UID of the three closest Big Rooms, Then the distance of the three closest Big Rooms.
What the dungeons look like: