Game engine for the game Wordle
Project description
PyWordle
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pywordle2-0.0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f0cb96fed73dd78f1058fa361037fb0db7bf3576a7b25d88475c214ecb6db1c |
|
MD5 | bd6143b82edc07123ce7e221144c9094 |
|
BLAKE2b-256 | 21fcd9c0f42d76680456ae830c835367cd6f0be8a7c1cffcddadc6566c3af2dd |