Advertisement
FractalFusion

Lua script for Game Boy Wordle to dump all words (including falsely allowed words)

Apr 11th, 2022
1,406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 32.24 KB | None | 0 0
  1. console.clear()
  2.  
  3. --lua tables start at index 1
  4. "wordle.txt","a")
  5.  
  6. local testcount=0
  7. local wordcount=0
  8.  
  9. for a=65,90,1 do
  10.     for b=65,90,1 do
  11.         for c=65,90,1 do
  12.             for d=65,90,1 do
  13.                 for e=65,90,1 do
  14.                     if isintable(a,b,c,d,e) then
  15.                         fle:write(string.char(a+32)..string.char(b+32)..string.char(c+32)..string.char(d+32)..string.char(e+32).."\n")
  16.                         wordcount=wordcount+1
  17.                     end
  18.                    
  19.                     testcount=testcount+1
  20.                    
  21.                     if testcount%200000==0 then
  22.                         console.log(tostring(testcount).." "..tostring(wordcount))
  23.                     end
  24.                    
  25.                 end
  26.             end
  27.         end
  28.     end
  29. end
  30. fle:close()
  31. console.log("done")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement