Skip to content

kushadige/crossword-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crossword Puzzle Generator

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


Examples

Terminal Renderer

image

Pygame Renderer

image

Installation

git clone https://github.com/kushadige/crossword-generator.git
cd crossword-generator

Virtual Environment Setup

Create

python3 -m venv venv

Activate

- MacOS/Linux

source venv/bin/activate
- Windows

venv\Scripts\activate

Install Dependencies

pip3 install -r requirements.txt

Usage

1. Use default CLI

Run the application without any arguments to use the default CLI. It will prompt you to enter the words manually.

python3 main.py

2. Provide file input

You can provide a file containing the list of words using the -f flag.

python3 main.py -f data/wordlist.txt -r pygame

3. Specify renderer type

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

Author

oguzhankuslar

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages