Skip to content

Shreenabh664/Wordle-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wordle-solver

Image credit: https://medium.com/@yotamyachmoorgafni

Easy to use Wordle Solver. Flaunts a minimalist UI and UX. The new implementation is complete for all Wordles and optimizes for minimum tries.

Usage:

  • Clone and cd into this repo.
  • Choose the appropriate C file based on your OS.
  • Compile wordle-mac-linux.c/wordle-win.c (uses math.h header for entropy calculations so use -lm flag with gcc).
  • After every word suggested, input the feedback from wordle, e.g. bbygb for ⬛️⬛️🟨🟩⬛️
  • Input ggggg to ensure it quits correctly when the word matches.
  • If a floating point exception is raised, it means you have entered incorrect feedback at some stage.

Example usage:
soare
byybb
bloat <--- The second word might take some time to print (this is the most computationally heavy step)
bggyg
aloft
ggggg

Result:
Wordle 231 3/6

⬛🟨🟨⬛⬛
⬛🟩🟩🟨🟩
🟩🟩🟩🟩🟩

New optimizations significantly reduce the number of steps needed (in most cases). Read more about the information theory approach here: https://markmliu.medium.com/what-in-the-wordle-5dc5ed94fe2

⚠️ WIP ⚠️ The build is stable on Windows, there are some memory issues on UNIX based OS. Helpful PRs are appreciated.

About

Wordle solver in C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages