Learning p5.js week three: Wave Function Collapse

After a short break, this week I’m exploring the Wave Function Collapse algorithm, following this video by The Coding Train . What Is Wave Function Collapse # According to Wikipedia : [...] a family of constraint-solving algorithms commonly used in procedural generation , especially in the video game industry . In simpler terms, it’s a system that generates patterns or terrains based on rules: it…