Skip to content

Commit

Permalink
Wasn't working earlier with the basic tiles because the checkAdjacenc…
Browse files Browse the repository at this point in the history
…y function was trying to split() a number
  • Loading branch information
RanvirChoudhary committed Nov 14, 2023
1 parent cd67f62 commit bfc2eab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function checkAdjacency(adjacentCell, collapsedCell, adjacentSocket, collapsedSo
for (let i = 0; i < adjacentCell.options.length; i++) {
const option = adjacentCell.options[i];
let collapsedRespectiveSocket = tiles[collapsedCell.options[0]].sockets[collapsedSocket]
let adjacentRespectiveSocket = tiles[option].sockets[adjacentSocket].split("").reverse().join("")
let adjacentRespectiveSocket = tiles[option].sockets[adjacentSocket].toString().split("").reverse().join("")
if (collapsedRespectiveSocket != adjacentRespectiveSocket) {
adjacentCell.options.splice(i, 1)
i -= 1
Expand Down

0 comments on commit bfc2eab

Please sign in to comment.