Ok, so I'm working on a mapscript which has single tile islands with a minimum proximity. I had thought of doing it recursively (ie having an adjacency checking function which returns a table with it's surrounding tiles, then calling it on the tiles in the returned table for a certain number of iterations, depending on the proximity required), however after figuring that out my brain stopped working and I can't work out how to get tiles adjacent to a given tile. I got stuck trying to figure out which way a row is offset.
Some help with this would be very welcome, or alternatively another solution for the original problem?
Some help with this would be very welcome, or alternatively another solution for the original problem?