Introduction
This is a class project that use WaveFunctionCollapse and genetic algorithm to generate desire maps.
I implemented the tool use Python. There are several packages used in this project including pygame, torch, etc. The pygame is used for the application and the torch is used for the genetic algorithm.
The tool is an interactive generator that allow users to generate their preferred maps. Users can choose tiles to use and set constraints for each tile they choose. Then the tool uses WaveFunctionCollapse algorithm to generate multiple maps for users to choose. Each patch has eight maps and users can choose their desired maps. Then the tool iteratively generate the next patch based on the genetic algorithm for users to select.
The Tool
Step 1: Select the tiles to generate the map
Step 2: Set connected tiles on each direction as constraints.
Step 3: Select preferred generated map for next iteration.
Github Links: https://github.com/ZhaoqingT/Class202