Image source: https://github.com/mxgmn/WaveFunctionCollapse
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