Superpositions, Sudoku, the Wave Function Collapse algorithm.
What it is
Martin Donald explains the Wave Function Collapse algorithm using Sudoku-like constraint solving and shows how he implemented it with Blender and Godot. It links demos and reference articles.
Why Hacker News recommends it
Commenters recommend it as the clearest way to understand WFC, especially in threads about Townscaper and tiled content generation.
- 3 people recommended it
- 3 different months
- 1 strong recommendations
- first 2021, last 2022
What HN commenters said
“I found them hard to understand until I found this video by Martin Donald”
Made wave function collapse understandable.
V__, 2022-06 · Strong recommendation · in “How Townscaper Works: A Story Four Games in the Making”
“Martin Donald made a really nice youtube video on how it works”
Really nice explanation of how the algorithm works.
t8y, 2021-12 · Recommendation · in “Townscaper Running in the Browser”
“I happened to see a good video on this recently”
Good explanation of an algorithm for generating tiled content.
orls, 2022-05 · Recommendation · in “Show HN: Simple Wave Function Collapse”
Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.
Topics: wave function collapse, constraint solving, godot, blender, tiling
Also recommended by the same people
explainerHow Bankrupt American Cities Stay Alive - Debt [ST04]Not Just Bikes · 7 HN recommenders · 2021–2024
documentaryA NEW Trace! The FULL MH370 Story, so Far..Mentour Pilot · 5 HN recommenders · 2024–2025
explainerThe medical test paradox, and redesigning Bayes' rule3Blue1Brown · 4 HN recommenders · 2020–2025
explainerThe world depends on a collection of strange items. They're not cheapVeritasium · 6 HN recommenders · 2023–2026
explainerWhy Electronic Voting Is Still A Bad IdeaTom Scott · 11 HN recommenders · 2020–2026
talkCppCon 2017: Matt Kulukundis “Designing a Fast, Efficient, Cache-friendly Hash Table, Step by Step”CppCon · 9 HN recommenders · 2018–2026
explainerThe Fast Fourier Transform (FFT): Most Ingenious Algorithm Ever?Reducible · 7 HN recommenders · 2021–2026
talkModern Dictionaries by Raymond HettingerSF Python · 9 HN recommenders · 2016–2025