Skip to content

Elm library to generate random maps/boards/grids from custom tiles using the wave function collapse algorithm

License

Notifications You must be signed in to change notification settings

axelerator/wave-function-collapse-2d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wave Function Collapse

The Wave Function Collapse algorithm is a popular approach to generate random maps or boards from smaller tiles.

By progressively excluding invalid combinations and picking random tiles based on what's left over we can generate many variations of valid landscapes.

Below is a video of the example app. It shows the stepped debug view on the left and generating random solutions on the right.

demo screen capture

About

Elm library to generate random maps/boards/grids from custom tiles using the wave function collapse algorithm

Resources

License

Stars

Watchers

Forks

Packages

No packages published