WFC
I had great fun implementing the wave function collapse (overlapping model) algorithm by following the Coding Train video. Below are some results. You can also view an animated version here.
During the implementation, I had to debug some issues (not fun but rewarding eventually).
One that I remember vividly is mistakenly using splice
instead of slice
.
Another one is using mulitple if else
statements instead of if
statements.
You can find the source code here.



