Skip to main content

The popular word game recreated in Python, deployable with custom answers.

Project description

Wordle

import wordle

game = wordle.Wordle(word = 'HELLO', realWords = False)
game.run()

Wordle is super fun and popular game. Unfortunately, it's a little nonstandard, but the logic behind it is quite simple which is why it's now a Python library.

Instantiate a game object using game = wordle.Wordle(). The two positional requirements of the Wordle class are word and realWords. word is the answer to the game. It must be a real, five-letter word. If it isn't, the package will raise an error and you'll have to change your instantiation to reflect a real word. realWords is a boolean. If it's True, the package will check user guesses against a comprehensive inbuilt database of thousands of five-letter words. If it's False, any guess (real or not) will be accepted.

In the game of Wordle, part of the challenge is that guesses must be real words. This prevents users from guessing "aeiou" as their first attempt, for example. That's why you must tell the game object whether it should check for real words or not.

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-python-1.3.10.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

wordle_python-1.3.10-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file wordle-python-1.3.10.tar.gz.

File metadata

  • Download URL: wordle-python-1.3.10.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for wordle-python-1.3.10.tar.gz
Algorithm Hash digest
SHA256 6e261f80fa4cfe60a9babd182d767792fac456e0617aa3736d4f10b461c3e63e
MD5 d773f0ae0a8e3b40b7f52a8e3ebd39e2
BLAKE2b-256 c759cc9b47ebdb9539cb452e5199f604a8ac826fc1044e704cb45e97447376a6

See more details on using hashes here.

File details

Details for the file wordle_python-1.3.10-py3-none-any.whl.

File metadata

  • Download URL: wordle_python-1.3.10-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for wordle_python-1.3.10-py3-none-any.whl
Algorithm Hash digest
SHA256 1968eb3776f023e53d019bb6e6bfcec2424208b5477e3efc3afe296b6a25b239
MD5 d6614c94ffa0bab520448c866a8d4cdd
BLAKE2b-256 38a4b7d792f800a1c493060abca98b9cef2aa9b6fda46037daa7b373d7ead068

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