Skip to main content

A game of wordle with suggested words!

Project description

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.

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_buddy-0.0.4.tar.gz (180.6 kB view hashes)

Uploaded Source

Built Distribution

wordle_buddy-0.0.4-py3-none-any.whl (179.4 kB view hashes)

Uploaded Python 3

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