Advertisement
goodwin64

wordle 7-letters helper

Oct 27th, 2022
1,375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // this script will help you find out the best 7-letter word
  2.  
  3. // http://www.allscrabblewords.com/7-letter-words/
  4. const words = document.querySelector('ul.list-inline').children;
  5. const fitWords = [...words]
  6.     .map(li => li.children[0])
  7.     .map(a => a.innerText)
  8.     // (1) blacklist letter you don't want to be in your word into this regex
  9.     // (2) get words with unique letters
  10.     .filter(w => !w.match(/[acqueir]/g) && new Set(w.split('')).size === w.length)
Tags: wordle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement