joshbduncan / word-search-generator

Make awesome Word Search puzzles!
MIT License
72 stars 23 forks source link

Add param to WordSearch that raises an Exception when it cannot place all words #32

Closed duck57 closed 1 year ago

duck57 commented 1 year ago

In case you wanted some more context for this, it's so that I can create the Crossword object as a subclass of WordSearch.

class Crossword(WordSearch):
    def __init__(self, words: dict[str, str], optional_words: dict[str, str]):
        ...
        @retry(3)
        super().__init__(..., include_all_words=True)
        ...