When I have tried to run the Wordle solver on Dungleon puzzles, I have noticed that the script would crash due to an excessive RAM usage. This is caused by the number of allowed guesses which is larger in Dungleon than in Wordle.
By building the pattern matrix in blocks of length 13000, the script remains the same for Wordle puzzles, and works for larger puzzles such as Dungleon's.
I have tested this change on a refactored version of your script (to simplify dependencies), and I have copied the changes to my fork of your repository in order to create this pull request, so I have not tested my changes in your script as it is. Feel free to check that everything still works as intended.
When I have tried to run the Wordle solver on Dungleon puzzles, I have noticed that the script would crash due to an excessive RAM usage. This is caused by the number of allowed guesses which is larger in Dungleon than in Wordle.
By building the pattern matrix in blocks of length 13000, the script remains the same for Wordle puzzles, and works for larger puzzles such as Dungleon's.
I have tested this change on a refactored version of your script (to simplify dependencies), and I have copied the changes to my fork of your repository in order to create this pull request, so I have not tested my changes in your script as it is. Feel free to check that everything still works as intended.