billthefarmer / gurgle

Fairly simple android word game
https://billthefarmer.github.io/gurgle/
GNU General Public License v3.0
54 stars 18 forks source link

Feature Request: Disable Repeat Letters #75

Closed ghost closed 9 months ago

ghost commented 10 months ago

I'd love to be able to disable the usage of words with the same letter twice. I never want to get FOGGY or TALLY or OBOES or anything similar.

Was always the reason I never played real Wordle. Feels "cheap" to me in some weird way. Maybe it's just me.

billthefarmer commented 9 months ago

If you remove words with duplicated letters it doesn't leave much of a game...

$ wc ../src/main/assets/Words.txt
 2314  2315 16203 ../src/main/assets/Words.txt

Bill@Cecelia MSYS /d/android/Gurgle/data
$ cat dup.py
f = open('../src/main/assets/Words.txt')
for line in f:
    dup = False
    for c in line:
        if line.find(c) != line.rfind(c):
            dup = True
    if dup:
        print(line, end='')
f.close()

Bill@Cecelia MSYS /d/android/Gurgle/data
$ python dup.py | head
aback
abase
abate
abbey
abbot
abyss
adage
adapt
affix
afoot

Bill@Cecelia MSYS /d/android/Gurgle/data
$ python dup.py | wc
    749     749    4494
ghost commented 9 months ago

So that's 2314 (or 2315) minus 749, or 1565 words left. That's still pretty good! :P

But fair enough if you're not interested in adding an option for it. 🤷🏻‍♂️


I see English.txt has a lot more words (10657) than Words.txt.

billthefarmer commented 9 months ago

The English.txt file is possible allowed guesses, the Words.txt file is the list of randomly selected words used for the game. If someone comes up with a good idea, such as sharing games, or a dictionary for another language it gets added. Minority niggles like #72 and this I don't think add anything to the game.

ghost commented 9 months ago

F