Skip to content

AlejandroBaron/wfc-learn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wfc-learn

Learning about the Wave Function Collapse algorithm.

References

  • Robert Heaton's blog post: Link
  • The original repo: Link

How to run

First build the project with the following command:

make

Then

./wfc <input_file> <mode>

Mode can be one of the following:

  • WEIGHTED: The algorithm will consider the weights of the tiles equal to the total count in the sample.
  • CONSTANT: The algorithm will consider the weights of the tiles equal to 1.

To build run everything in one go you can do

make && ./wfc inputs/world.txt CONSTANT

WFC Example

About

Learning about wave function collapse in c++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published