2026-03-09 Hacker News Top Articles and Its Summaries
1. Building a Procedural Hex Map with Wave Function Collapse Total comment counts : 24 Summary Procedural medieval island maps are built with WebGPU and Three.js, using Wave Function Collapse on hex tiles. The project spans about 4,100 cells across 19 grids and creates roads, rivers, coasts, forests, villages, and five elevation levels in ~20 seconds. With 30 tile types, hexes have six edges, increasing constraints. To avoid global dead-ends, the solver uses modular WFC: solve each grid independently while honoring border constraints, plus a delta-trail backtracking (up to 500)....