Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [...$0.parentElement.children]
- .filter(el => el.nodeName == 'A')
- .splice(2)
- .forEach((cell, i) => {
- const [x, y] = cell.children[0].name.replace('cellIm', '').split('_').map(c => parseInt(c))
- if (cellArray[i].isBomb) cellClick(x, y, { button: 1 })
- else cellClick(x, y, { button: 2 })
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement