Build as many words as possible from the given letters (twofx.github.io) 3 points by re-framer 2y ago ↗ HN
[–] smcin 2y ago ↗ Which dictionary are you using? Words not in it: DREG, TREND(ED), DEDENT(ED), DENNED... [–] re-framer 2y ago ↗ I did not author the game, and I can't remember the name of the word list, but there is even a video of how the game was built and the word list is part of it: https://www.youtube.com/watch?v=CPhP4NXJFRk
[–] re-framer 2y ago ↗ I did not author the game, and I can't remember the name of the word list, but there is even a video of how the game was built and the word list is part of it: https://www.youtube.com/watch?v=CPhP4NXJFRk
[–] genezeta 2y ago ↗ Given that you so generously keep the dictionary there, one can just open the console and paste: words.filter((word) => word.split('').every((letter) => "egtdrnq"].indexOf(letter) !== -1) && word.indexOf('d') !== -1 && word.length>3) But, of course, that spoils the fun :) [–] genezeta 2y ago ↗ More generally (speed may need to be adjusted): var letters = $$('.hex').map((x)=>x.textContent.toLowerCase()).join(''); var obLetter = $('.hex.yellow').textContent.toLowerCase(); var sol = words.filter((word) => word.split('').every((letter) => letters.indexOf(letter) !== -1) && word.indexOf(obLetter) !== -1 && word.length>3); let tick = 0; let nextWord = ()=>{ $('#textInput').value=sol[tick].toUpperCase(); $('.enter-button').click(); tick++; if(tick<sol.length) setTimeout(nextWord, 50); }; setTimeout(nextWord, 30);
[–] genezeta 2y ago ↗ More generally (speed may need to be adjusted): var letters = $$('.hex').map((x)=>x.textContent.toLowerCase()).join(''); var obLetter = $('.hex.yellow').textContent.toLowerCase(); var sol = words.filter((word) => word.split('').every((letter) => letters.indexOf(letter) !== -1) && word.indexOf(obLetter) !== -1 && word.length>3); let tick = 0; let nextWord = ()=>{ $('#textInput').value=sol[tick].toUpperCase(); $('.enter-button').click(); tick++; if(tick<sol.length) setTimeout(nextWord, 50); }; setTimeout(nextWord, 30);
6 comments
[ 3.6 ms ] story [ 26.3 ms ] thread