Generates all possible crossword puzzles from a given list of words. It uses backtracking algorithm and generator functions to generate possible puzzles.


git clone https://github.com/kushadige/crossword-generator.git
cd crossword-generator
python3 -m venv venv
- MacOS/Linux
source venv/bin/activate
- Windows
venv\Scripts\activate
pip3 install -r requirements.txt
Run the application without any arguments to use the default CLI. It will prompt you to enter the words manually.
python3 main.py
You can provide a file containing the list of words using the -f
flag.
python3 main.py -f data/wordlist.txt -r pygame
You can specify the rendering type using the -r
flag. The available options are pygame
or terminal
. (default: terminal
)
python3 main.py -f data/wordlist.txt -r pygame