Setup Python side of the repository to handle crossword generation.
INPUTS:
The answer bank of crossword clues (that have been properly vetted to be acceptable words of appropriate length).
The side-length of the (square) puzzle area. Each character (of a word) constitutes a single length unit. The default value is 20.
Note: Will need to implement a clean handover method between various sides of the project. Perhaps via simple (~5-10 line) .ini file.
OUTPUTS:
A JSON file that describes a single Python dictionary that contains key-value elements for each word provided in the answer bank. Python dictionary format:
Python does its magic to either return output above or error if unable to create puzzle
3.1. If error, leave NextJS API route early and inform user that words list doesn't work, try others.
3.2. Otherwise, create clues from words, combine & format crossword & clues JSON, and send back to client to display in react-crossword component.
Setup Python side of the repository to handle crossword generation.
INPUTS:
The answer bank of crossword clues (that have been properly vetted to be acceptable words of appropriate length).
The side-length of the (square) puzzle area. Each character (of a word) constitutes a single length unit. The default value is 20.
Note: Will need to implement a clean handover method between various sides of the project. Perhaps via simple (~5-10 line) .ini file.
OUTPUTS:
Example:
Note: Ensure clean handoff from Python back to React / other handler.