The WFC was changed for a certain application. It creates a map for 2D world, the main result is a 2D binary matrix representing the walls and paths. It could be used in the environment to set the game. The repository with a game where this generator will be used - https://github.com/Nik-Kras/ToMnet-N
For details of each class and method please look at examples/Wave_Function_Collapse.ipynb
To look at the use examples - main.py
or examples.py
PS: Yellow lines are path and Purple are walls
Use poetry
.
poetry run pytest
python -m vulture main.py src
poetry run bandit -c pyproject.toml -r .