Skip to main content

Play and solve Wordle games.

Project description

Wordle Game

Documentation: https://ahaque12.github.io/wordle-game

😂 Here is a random joke that'll make you laugh!

Jokes Card

Getting Started

Dictionary

Run the makefile $ make or download the dictionaries manually.

  1. Download the target word list at https://gist.githubusercontent.com/cfreshman/a03ef2cba789d8cf00c08f767e0fad7b/raw/a9e55d7e0c08100ce62133a1fa0d9c4f0f542f2c/wordle-answers-alphabetical.txt and place it in the data/ folder.
  2. Download the acceptable guesses word list at https://gist.githubusercontent.com/cfreshman/cdcdf777450c5b5301e439061d29694c/raw/de1df631b45492e0974f7affe266ec36fed736eb/wordle-allowed-guesses.txt and place it in the data/ folder.

You can install the package using:

$ pip install .

Playing the game

CLI

There are two modes: assistant and play.

Assistant

$ wordle_game assistant --solver random
Enter guess (enter empty string for no more guesses):raise
Enter response:BBBBG
Enter guess (enter empty string for no more guesses):belle
Enter response:BYYBG
Enter guess (enter empty string for no more guesses):clone
Enter response:BGBBG
Enter guess (enter empty string for no more guesses):
Best guess is elude
Enter guess (enter empty string for no more guesses):
Enter response:YGGBG
Enter guess (enter empty string for no more guesses):fluke
Enter response:GGGBG
Enter guess (enter empty string for no more guesses):
Best guess is flume
Enter guess (enter empty string for no more guesses):
Enter response:GGGBG
You exceeded the maximum guesses and lost :(.

Play

$ wordle_game assistant play
python3 main.py play
Game state:

Enter guess:raise
Game state:
YBBBB

Enter guess:spout
Game state:
YBBBB
BBYBB

Streamlit

$ wordle_app streamlit

image

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wordle-game-0.1.2.tar.gz (104.7 kB view details)

Uploaded Source

File details

Details for the file wordle-game-0.1.2.tar.gz.

File metadata

  • Download URL: wordle-game-0.1.2.tar.gz
  • Upload date:
  • Size: 104.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/3.7.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.5

File hashes

Hashes for wordle-game-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f694d936ad6f3578f85bc6d88ac96e227723a91b03198bbe1d330a40db0703f4
MD5 9b94c47da6e9b2c90833638ca3834556
BLAKE2b-256 e13f54a5563a914f7c36572390127df26e13e47a3316aa0d92aa985750adb32a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page