A wordsearch program created in 61 minutes (plus documentation time). Create a grid of random characters, then find the words from the provided words.txt file in the rows, columns, and diagonals, forwards and backwards.
Clone this repository
Create a Virtual Environment using pipenv
pipenv --three
Install the PyTest requirement
pipenv install --ignore-pipfile
Enter the Virtual Environment
pipenv shell
To create your own 15 x 15 matrix and print the words found
python3 wordsearch/wordsearch.py 15 ./words.txt
For help with the command-line arguments
python3 wordsearch/wordsearch.py -h
To execute the tests
pipenv install --dev --ignore-pipfile
python3 -m pytest tests