issues Search Results · repo:CodingTrain/Wave-Function-Collapse language:JavaScript
Filter by
17 results
(62 ms)17 results
inCodingTrain/Wave-Function-Collapse (press backspace or delete to remove)Hi!
I was reading through the code and when the lowest entropy is calculated, you are comparing the number of available
options
https://github.com/CodingTrain/Wave-Function-Collapse/blob/fb6e0a16dfb595c0a740953b5df28f2ef5527876/p5js/overlapping-model/sketch.js#L91-L103 ...
MrMarble
- 1
- Opened on Feb 5
- #48
for (let i = 0; i 12; i++) { ... } We are assigning only 12 out of 13 tiles...
alin256
- 2
- Opened on Mar 8, 2023
- #43
Hey, thank you very much for all your videos, I m having a blast watching them!
I made a Pull Request here to make grid updates more efficient. Instead of watching all cells one by one hoping that
there ...
gverger
- Opened on Jul 21, 2022
- #41
i was trying to draw a large grid (64x64) and it was slow, so i tweaked the draw() function to skip calculating
validOptions for cells that weren t adjacent to any other collapsed cells
// if ZERO adjacent ...
jakedowns
- 2
- Opened on Jul 15, 2022
- #38
By this time, there are duplicated tiles, one as an image and one as graphic:
const initialTileCount = tiles.length;
for (let i = 0; i initialTileCount; i++) {
let tempTiles = [];
for (let ...
Deg42
- 1
- Opened on Jul 11, 2022
- #37
At 22:24 in the video Dan tries to use his constants as the keys in the object but it doesn t work for him. This is
because he did it wrong.
when he did it you ended up with an object that had the strings ...
GypsyDangerous
- 1
- Opened on Jul 9, 2022
- #35
Need a better GIF (too large, weird crop), and other links or details related to the video...
https://thecodingtrain.com/challenges/171-wave-function-collapse
shiffman
- Opened on Jul 5, 2022
- #34
When a new grid is created, it becomes impossible to check for ALL changes when selecting a random option. Changes are
made on the NEW grid, but the checking is done on only the OLD grid. This may lead ...
Fietsje
- Opened on Apr 29, 2022
- #28
It would make things easier if more data is analyzed (like in tile.js) before starting the draw loop.
When creating the Grid, save the x and y positions as well as the coordinates (x1, x2, y1, y2 for ...
Fietsje
- 1
- Opened on Apr 28, 2022
- #26
Hi :smiley: We can write a function to get only the unique tiles in an array :
function removeDuplicatedTiles(tiles) {
const uniqueTilesMap = {};
for (const tile of tiles) {
const key = tile.edges.join( ...
loic-brtd
- 6
- Opened on Apr 26, 2022
- #24

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.