Image source: https://github.com/mxgmn/WaveFunctionCollapse
https://www.youtube.com/watch?v=5iSAvzU2WYY
Generating Worlds With Wave Function Collapse
Superpositions, Sudoku, the Wave Function Collapse algorithm.
C# and a lot of links:
P5:
D-T-666/wave-function-collapse-p5
Javascript:
kchapelier/wavefunctioncollapse