This doesn't have island detection yet but it uses perlin noise for natural yet random map generation. You can give an amount of desired accessible tiles and it will generate a map with exactly that amount.
That is sub-optimal because with the value of 18 we could have a map like this
o = accessible
x = inaccessible
ooooo
ooxoo
xxxxx
ooxoo
ooooo
The two players could never actually reach each other. Still, I'm quite content with this so far and I'd like to make it more c-sharpy and discuss ways of improving that.
This doesn't have island detection yet but it uses perlin noise for natural yet random map generation. You can give an amount of desired accessible tiles and it will generate a map with exactly that amount.
That is sub-optimal because with the value of 18 we could have a map like this
The two players could never actually reach each other. Still, I'm quite content with this so far and I'd like to make it more c-sharpy and discuss ways of improving that.
See you tomorrow!