Mapgen3 demo

HTML5 sequel of mapgen2. Abandoned for a variety of reasons. See mapgen2 or mapgen4 instead. Live demo; click to generate a new one:

Bug: sometimes two rivers are parallel to each other and connect instead of staying separate:

Bug: sometimes rivers go through lakes:

Bug: sometimes it doesn’t work at all:

More details:

After the Flash version of mapgen2 (2010), I worked on this HTML5 version, which was going to be (a) switch from Flash to HTML5, (b) use new algorithms, (c) use new data structures. The combination of doing all three of these changes at once was too much. It was hard to figure out what was going wrong when everything had changed. As you can see above, there are weird bugs that I was never able to figure out. I abandoned this, and made smaller changes to make progress:

(early 2017) I studied the new data structures on their own, in smaller projects first. My first blog post about this was here; and I later wrote a guide[1] to the data structures (2018).