Wave-Function-Collapse
Wave-Function-Collapse copied to clipboard
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
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...
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...
Hi :smiley: We can write a function to get only the unique tiles in an array : ```js function removeDuplicatedTiles(tiles) { const uniqueTilesMap = {}; for (const tile of tiles)...
As they say, an image worth a thousand words.  We are having an issue were tile 5 connects to itself and so does 4 in a weird way. My...
In this branch of my fork https://github.com/MrAmericanMike/Wave-Function-Collapse/tree/better-tile-initialization I created an "addTile" function. Basically what it does is push a new tile to the tiles array and if rotation is greater...
the issue with the tiles in hand is the asymmetry when you have a symmetric side on the tile, they can match to themselves (meaning the key you assigned to...
The base implementation notes that you can "Augment pattern data with rotations and reflections." I don't think you need reflections for the circuit problem but you might run into it...