Skip to main content

A Python package to play Wordle

My reproduction of the popular game (the real one here). The implementation also suggests the top ten words, based on their entropy. Experiments have revealed choosing the maximum-entropy guess (i.e., the top suggestion) will lead to 3.6 guesses on average.

Documentation available on ReadTheDocs.

Installation

pip install wordle-buddy

Play a game

To play via the command line, simply run the wordle_buddy command. To play in "manual mode", where you enter in the resulting colors, run wordle_buddy_manual.

To play a game in a python terminal, instantiate a WordleGame object and use the run() method.

from wordle_buddy import WordleGame
game = WordleGame()
game.run()

To exit, press Esc.

Release files for wordle-buddy 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wordle-buddy 0.0.4
File Size Uploaded
wordle_buddy-0.0.4.tar.gz 180.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wordle-buddy 0.0.4
File Interpreter ABI Platform
wordle_buddy-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 360.1 kB

Release files / wordle_buddy-0.0.4.tar.gz

Download URL wordle_buddy-0.0.4.tar.gz
Size 180.6 kB
Tags Source
SHA-256 checksum
How to use checksums
79a723045925292ecddfda08b6cca1b318e213764c772ea3b36e4f23a32465c7
BLAKE2b-256 checksum
How to use checksums
074fdfdcb67189e29a74c03f3dc45c2528e6855e096fcc4247f729087b004165
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

Release files / wordle_buddy-0.0.4-py3-none-any.whl

Download URL wordle_buddy-0.0.4-py3-none-any.whl
Size 179.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9dc86a36247b96a9c5e6ae4dfbc1f91e35e64fb1f565fe3ef8b64b3f7decca31
BLAKE2b-256 checksum
How to use checksums
8e9b2277b3b660d6acfae1dc81f96ba33e7adc74465017bd3800c6671c35e05f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page