CodingTrain / CodingTrain/Wave-Function-Collapse
Adjacent edges
未关闭
- 主要语言
- JavaScript
- 星标
- 218
- 派生
- 64
- PR 合并指标
- 30 天内没有已合并 PR
描述
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.
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。