mardi 1 septembre 2020

Best way to find a random word from a wordlist

There is a wordlist given in a txt file or list format: ['plgexuarvmsz','icpymbrtdjxu','zqisknegaypm','spyirucgloha','svbikfjzxapu'...]

a random word from the list is chosen

I have access to the wordlist each time I guess a word I am given the number of characters that were correct, without any indication upon what characters or their position.

how can I guess most efficiently (lest amount of tries) the random word from the list?

-- a linux command would be best !

-- also python algorithm would be great !

thanks !




Aucun commentaire:

Enregistrer un commentaire