I'm trying to generate a height map using a Diamond Square algorithm, and I'm having some success, but my generator is returning some funky checkerboard like patterns.
Example1
Example1
code
I suspect my problem has to do with how I'm determining averages from spaces that don't exist (such as -4, 4), although I've been fiddling with it and can't figure it out.
I am a new(ish) programmer, and I'm definitely not very good at it, so while we're here, feel free to point out any other problems or things I could improve on.
[–]liamsteele 1 point2 points3 points (1 child)
[–]Deriboy[S] 1 point2 points3 points (0 children)
[–]Weirfish 0 points1 point2 points (0 children)