Hexagon Spiral Coordinates
redblobgames.com
redblobgames.com
Spent so much time trying to do suboptimal things until I just followed all the advice there…
I used the Moore variant(closed form vs open form) of the Hilbert curve once, I had this fever dream of how Monopoly would be more fun if the players had more agency. using the moore curve as the cost function I came up with a board. If I ever regain enthusiasm for the project I will give each square a name and call it "The Walled City" after the infamous city near Hong-Kong.
http://nl1.outband.net/extra/board.svg
if you follow the zero cost path it forms a moore curve, but you can pay extra to take shortcuts. the interesting part was that the definition of the curve was expressed as a L-system so I ended up having to make a partial l-system parser to generate the cost function.
I appreciate the effort that Red Blob Games puts into their website.
It's prone to breaking at times, but I am continuously improving it and will do a official post on hackernews once there's a good amount of levels and its fairly robust with how it scales the vim instances.