CodingTrain / CodingTrain/Wave-Function-Collapse

Why keep images in tiles graphic array?

未關閉
#37 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
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:
![Screnshot](https://user-images.githubusercontent.com/73712866/178241572-efc1a935-2afd-4222-b19e-bd0d1148bfca.PNG)

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。