Skip to content

A solver for wordgames such as scrabble and countdown

License

Notifications You must be signed in to change notification settings

AaronRobson/wordgame

Repository files navigation

wordgame

Build Status CircleCI Coverage Status

A solver for wordgames such as scrabble and countdown

Install

Install from PyPi

pip3 install wordgame --upgrade --user

Install from test PyPi

pip3 install wordgame --index-url https://test.pypi.org/simple/ --upgrade --user

Install locally

python3 -m pip install . --user

Run program

python3 -m wordgame -n 10 fdofieasg

Which should result in words such as offside.

Common operations

To run linting, unit tests and package building run the following.

make

Run linting

make check

or

flake8

Run unit tests

make test

or

python3 -m unittest

Packaging

make build

or

python3 setup.py sdist bdist_wheel

Uploading

Ensure that the version number is distinct from the previous version.

Upload to test instance of PyPi

twine upload --repository-url https://test.pypi.org/legacy/ dist/*

Upload to the proper PyPi

twine upload dist/*

Word list

words.txt

source: https://www.instructables.com/id/Python-and-Word-Lists/