https://github.com/toddbirchard/crossword-solver
Finds all words in a crossword puzzle along the vertical or horizontal axises.
https://github.com/toddbirchard/crossword-solver
data-engineering numpy python3
Last synced: 5 months ago
JSON representation
Finds all words in a crossword puzzle along the vertical or horizontal axises.
- Host: GitHub
- URL: https://github.com/toddbirchard/crossword-solver
- Owner: toddbirchard
- Created: 2019-05-09T22:27:30.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-16T06:18:47.000Z (over 5 years ago)
- Last Synced: 2025-08-23T03:57:05.112Z (6 months ago)
- Topics: data-engineering, numpy, python3
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Crossword Solver



[](https://github.com/toddbirchard/crossword-solver/issues)
[](https://github.com/toddbirchard/crossword-solver/stargazers)
[](https://github.com/toddbirchard/crossword-solver/network)
*Crossword Solver* finds all words in a crossword puzzle along the vertical or horizontal axises. Results for each word are printed to the console upon script execution. Words will be recognized regardless of being spelled forwards or backwards. Utilizes the Python [NumPy](https://www.numpy.org/) library.
## How To Use
*Crossword Solver* reads from two separate JSON files. These files may be modified to search for different words, or execute a different crossword puzzle entirely:
* `./data/crossword.json` contains the crossword puzzle to be solved.
* `./data/words.json` contains a collection of words to be searched for in the puzzle.
### Installation
**With Pipenv:**
```
$ git clone https://github.com/toddbirchard/crossword-solver
$ cd crossword-solver
$ pipenv update
$ pipenv shell
$ python3 main.py
```
**With Pip:**
```
$ git clone https://github.com/toddbirchard/crossword-solver
$ cd crossword-solver
$ pip3 install -r requirements.txt
$ python3 main.py
```
### Expected Output
Running the script as-is should produce the following result:
```
"how" found in puzzle!
"vue" found in puzzle!
"mope" NOT found in puzzle :(
```