CodingTrain / CodingTrain/Wave-Function-Collapse

Adjacent edges

Đang mở
#15 1 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
218
Fork
64
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.