3b1b / videos

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

Fix pattern_trit_generator for duplicate letters #19

Closed McAJBen closed 2 years ago

McAJBen commented 2 years ago

I'm not too familiar with Python but this is a fix for https://github.com/3b1b/videos/issues/15

The Wordle website uses a different algorithm that first checks for correct letters and will ignore duplicates.

A basic example is the word "ABCDE" and the guess "AAAAA"

An example for the current day's instance is with the guess "ERROR":

atusnial3 commented 2 years ago

This fix does not work. For example, for guess 'mocks' and answer 'cigar', this yields ⬛⬛⬛⬛⬛, while the actual result should be ⬛⬛🟨⬛⬛.

McAJBen commented 2 years ago

This fix does not work. For example, for guess 'mocks' and answer 'cigar', this yields ⬛⬛⬛⬛⬛, while the actual result should be ⬛⬛🟨⬛⬛.

Hmm, I used the source javascript from Wordle as reference. I tried that test case and I still got ⬛⬛🟨⬛⬛.