CodingTrain / CodingTrain/Wave-Function-Collapse

Adjacent edges

Open
#15 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
218
Forks
64
PR merge metrics
No merged PRs in 30d

Description

I think you mentionned not wanting 5.png (for circuit) to connect to itself even if it was in the right orientation, probably because it would make for really thin chips. The fix to that is to introduce another type of rule to propagate. I learned this when implementing the sudoku for weird rulesets like "knight move".

Basically you have to define if a tile can be adjacent to itself. If it isn't you should propagate that as well when you collapse a tile. Any tile adjacent to the tile we just placed cannot be the same tile.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.