3b1b / videos

Code for the manim-generated scenes used in 3blue1brown videos
5.79k stars 1.55k forks source link

Generate the pattern matrix in blocks #52

Open woctezuma opened 1 year ago

woctezuma commented 1 year ago

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.