We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 378904d + 1ed9a68 commit 383324cCopy full SHA for 383324c
tile-model/tile.js
@@ -26,8 +26,8 @@ class Tile {
26
for (let i = 0; i < tiles.length; i++) {
27
let tile = tiles[i];
28
29
- // Tile 5 can't match itself
30
- if (tile.index == 5 && this.index == 5) continue;
+ // Tile can't match itself
+ if (tile.index === this.index) continue;
31
32
// UP
33
if (compareEdge(tile.edges[2], this.edges[0])) {
0 commit comments