Fix recursive implies

main
Elbert Alias 4 years ago
parent 6c27004bbe
commit 78f6a1e442

@ -419,7 +419,7 @@ body.dynamic-icon .category__heading:hover .category__pin {
border-radius: 4px;
line-height: 0;
margin: auto;
width: calc(6rem + 2px);
width: 6rem;
}
.ttt-cell {

@ -114,6 +114,11 @@ function check(dryrun) {
complete.cells.forEach(({ el }) => el.classList.add('ttt-blink'))
if (complete.player === 'o') {
ahead.classList.add('ttt-player-icon--hidden')
behind.classList.remove('ttt-player-icon--hidden')
}
setTimeout(() => {
reset()
}, 1200)
@ -131,8 +136,8 @@ function play(cells) {
setTimeout(() => {
let found = false
search: for (const cell of cells) {
for (const player of players) {
search: for (const player of players) {
for (const cell of cells) {
cell.value = player
const { winner, empty } = check(true)

@ -158,10 +158,10 @@ const Wappalyzer = {
resolveImplies(resolved) {
let done = false
while (resolved.length && !done) {
resolved.forEach(({ technology, confidence }) => {
done = true
do {
done = true
resolved.forEach(({ technology, confidence }) => {
technology.implies.forEach(({ name, confidence: _confidence }) => {
const implied = Wappalyzer.getTechnology(name)
@ -184,7 +184,7 @@ const Wappalyzer = {
}
})
})
}
} while (resolved.length && !done)
},
/**