CodingTrain / CodingTrain/Wave-Function-Collapse

Adjacent edges

オープン
#15 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。