Skip to main content

Game engine for the game Wordle

Project description

PyWordle

build status

Game Engine for the popular Wordle game.

Installing the package

To install the package, run

python setup.py install

Usage

This package provides two classes: Wordle and Game. The Wordle class allows you to provide a set of possible solutions from which a game can be created. The Game class represents a single game with a specific solution. You are allowed six guesses to solve the game. Here is a quick example of how you might interact with the game:

wordle = Wordle(WORD_LIST)
game = wordle.create_game()
game.guess("SPILL")
print(str(game))

Interactive example

An interactive example is provided to demonstrate how this library can be used to run a text based version of the classic Wordle game. The following command will run this example:

python examples/interactive.py

Package structure

py-wordle
├── LICENSE
├── README.md
├── TODO.md
├── docs
│   ├── design-spec.md
│   └── functional-spec.md
├── examples
│   ├── interactive.py
│   ├── simple.py
│   └── solutions.py
├── pywordle
│   ├── __init__.py
│   ├── game.py
│   ├── test_game.py
│   ├── test_wordle.py
│   ├── wordle.py
│   └── words.py
└── setup.py

Continuous integration

GitHub Actions is set up to run all the unit tests anytime a commit is made to this project.

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

pywordle2-0.0.0.7.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pywordle2-0.0.0.7-py3-none-any.whl (52.8 kB view details)

Uploaded Python 3

File details

Details for the file pywordle2-0.0.0.7.tar.gz.

File metadata

  • Download URL: pywordle2-0.0.0.7.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pywordle2-0.0.0.7.tar.gz
Algorithm Hash digest
SHA256 624279287420ef175cab3be335ab65f750e3a73397e6bae95fbacd10dd83694d
MD5 5dcd019076b705a2594254d5201a2142
BLAKE2b-256 9b5a385a91a7a97318cf3d1159fdfbaf9b8e046ccb0ec29261e3473a40841117

See more details on using hashes here.

File details

Details for the file pywordle2-0.0.0.7-py3-none-any.whl.

File metadata

  • Download URL: pywordle2-0.0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 52.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pywordle2-0.0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8f0cb96fed73dd78f1058fa361037fb0db7bf3576a7b25d88475c214ecb6db1c
MD5 bd6143b82edc07123ce7e221144c9094
BLAKE2b-256 21fcd9c0f42d76680456ae830c835367cd6f0be8a7c1cffcddadc6566c3af2dd

See more details on using hashes here.

Supported by

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