As programmers, we love to build things, and what could be more exciting than building a world? Minecraft, Terragen, Skyrim, and every flight simulator ever all use some sort of fractal terrain generation. Today we'll explore the beautifully simple diamond-square algorithm so you, too can play God. [Demo] [Source] Programmers tend to be lazy (I speak from experience), and one nice side effect of l
![Realistic terrain in 130 lines](https://cdn-ak-scissors.b.st-hatena.com/image/square/0913c29b2db63f5a62bcf5ac101b74ce75017668/height=288;version=1;width=512/http%3A%2F%2Fwww.playfuljs.com%2Fimages%2Fterrain-result.jpg)