CodingTrain / CodingTrain/Wave-Function-Collapse
Why keep images in tiles graphic array?
- 主要語言
- JavaScript
- 星號
- 218
- 分支
- 64
- PR 合併指標
- 30 天內沒有已合併 PR
描述
By this time, there are duplicated tiles, one as an image and one as graphic:
``` javascript
const initialTileCount = tiles.length;
for (let i = 0; i < initialTileCount; i++) {
let tempTiles = [];
for (let j = 0; j < 4; j++) {
tempTiles.push(tiles[i].rotate(j));
}
tempTiles = removeDuplicatedTiles(tempTiles);
tiles = tiles.concat(tempTiles);
}
console.log(tiles.length);
```
Example:

貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
Start by tracing where the tiles array is initialized and how rotate() and removeDuplicatedTiles() are used in the shown expansion loop. Compare the image and graphic entries in the linked screenshot, then determine whether both representations are required. Done means the issue has a documented rationale or an agreed, tested simplification.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript
- 領域
- computer-graphics
- Issue 類型
- 重構
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100