joshbduncan / word-search-generator

Make awesome Word Search puzzles!
MIT License
74 stars 24 forks source link

Implement a crossword #77

Open duck57 opened 1 month ago

duck57 commented 1 month ago

Opening a PR now. The code currently doesn't work: I've put the traceback below. It seems to be something where my implementation isn't sending an expected argument to the Generator when calling super.init()

  File "word_search_generator/crossword/crossword.py", line 30, in __init__
    super().__init__(
  File "word_search_generator/core/game.py", line 145, in __init__
    self.generate()
  File "word_search_generator/core/game.py", line 402, in generate
    self.size = self._calc_puzzle_size(self._words, self._directions)
  File "word_search_generator/core/game.py", line 320, in size
    self.generate()
  File "word_search_generator/core/game.py", line 414, in generate
    self._puzzle = self.generator.generate(self)
TypeError: CrosswordFromWordSearch.generate() missing 1 required positional argument: 'game'