3b1b / videos

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

Float divison by zero error #38

Closed sethyo7 closed 2 years ago

sethyo7 commented 2 years ago

Whenever I run certain scenes on scenes.py for wordle I get a float division by zero error. This is what happens when I try to run scene 78: Screenshot 2_13_2022 5_54_50 PM `

3b1b commented 2 years ago

The scene ordering probably changed since you submitted this, can you share the name of the relevant scene?

sethyo7 commented 2 years ago

Im having the same problem. It is scene 76 now called "WrapperForEntropyCalculation"

3b1b commented 2 years ago

Ah, a few things seem amiss then. I suspect something about how it's rendering LaTeX isn't working right, since what should be a bit of Text is treated as an empty object. This did expose a bug in the Write animation, though, which should now be fixed on the master branch of manimgl.

Also, for what it's worth, it really doesn't matter to run that scene, it's just a frame with text and nothing exciting.

sethyo7 commented 2 years ago

oh ok thx. Is there a scene where i can input information and see how it does against actual games or is it just playing against what the word the code generates. I want to try against absurble like you did at the end of the video.

3b1b commented 2 years ago

Sure, try ExternalPatternEntry, and use "0", "1" and "2" to enter colors after you enter the word.

sethyo7 commented 2 years ago

It worked! Thank you for all the help.