Skip to content

Instantly share code, notes, and snippets.

View bagf's full-sized avatar
💣
⭐️ ⭐️ ⭐️ ⭐️ ⭐️ ⭐️ ⭐️ ⭐️

Rory bagf

💣
⭐️ ⭐️ ⭐️ ⭐️ ⭐️ ⭐️ ⭐️ ⭐️
  • Cape Town, South Africa
View GitHub Profile
# Resolves possible 5 letter wordle guesses, sssh its a secret cheat script
import sys
sys.argv.pop(0)
if len(sys.argv) == 0 or 'help' in sys.argv[0]:
print("usage: first 5 args is the known word _ for unknown prefix - for letters that are known to be in the word but not at that position, remaining args are known excluded letters")
print("example: ./wordle_cheat.py -t _ i -n _ m a g o h k")
print(" excludes m a g o h k letters and makes sure t cannot be the first, n cannot be the 4th and i must be the 3rd letter")
exit(0)