Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 739 Bytes

File metadata and controls

33 lines (22 loc) · 739 Bytes

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