Skip to content

cezar-r/wordle_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 

Repository files navigation

Solving Wordle Using Information Theory

wordle_mp4_2.mp4

Motive

This program was mainly inspired by the video posted by 3Blue1Brown, in which he explains how wordle can be solved using information theory. This program incorporates the math from the video and sends requests to the Wordle website to solve the daily puzzle. Follow the bot on Twitter to keep up to date on its results.

Installing and Running

Chromedriver

  • Be sure to install your Chrome's current version of chromedriver to your C:\Program Files (x86) folder. This is used to launch the browser and communicate with the Wordle website.
  • You can find your Chrome version by typing chrome://settings/help into your search bar.

Installation

  • git clone https://github.com/cezar-r/wordle_bot
  • cd wordle_bot/src
  • pip install -r requirements.txt

Running Browser Bot

  • python main.py

Running Simulations

  • python simulate.py <n_simulations> <first_guess1> <first_guess2> ... <first_guessn>
  • Ex: python simulate.py 100 slate crate crane

Performance

  • Below is a screenshot of the Wordle bot after playing 2000 games using slate dealt crane and soare as its first guesses. The bot itself has no knowledge of possible answers, its corpus is the 12,000 word file of allowed guesses. It also has no knowledge of word commonality at the moment. Lastly, the bot plays Wordle on hard mode.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages