Skip to content

michalszc/WaveFunctionCollapse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WaveFunctionCollapse

p5jsTypeScript parcel

This is a project that implements the tile model of the Wave Function Collapse (WFC) algorithm.

What is Wave Function Collapse?

The Wave Function Collapse algorithm is a concept from quantum physics that describes how a set of valid states can collapse into a single state. In this project, the algorithm is applied to a tile-based system where the edges of the tiles are evaluated to determine which tiles can be placed next to each other. By creating a custom tileset and defining the rules for tile placement, the program can generate unique patterns by randomly selecting among the possible solutions that follow the set rules.

More information can be found here.

Acknowledgments

This project was inspired by the work of Daniel Shiffman and mxgmn.

License

Licence