add simple reset function

This commit is contained in:
randomuser 2022-02-08 19:59:53 +00:00
parent e23268edfa
commit 0f380d5098
1 changed files with 7 additions and 0 deletions

View File

@ -68,6 +68,12 @@ while True:
print(prob.runtime(words)) print(prob.runtime(words))
elif line.split(' ')[0] == "words": elif line.split(' ')[0] == "words":
print(words) print(words)
elif line.split(' ')[0] == "reset":
words = [i.rstrip() for i in open("wordlist", "r").readlines()]
nocontain = []
contains = []
defcontains = []
print("reset!")
elif line.split(' ')[0] == "help": elif line.split(' ')[0] == "help":
print("welcome to wordlefish, a 'engine' for wordle") print("welcome to wordlefish, a 'engine' for wordle")
print("add - add pattern") print("add - add pattern")
@ -76,5 +82,6 @@ while True:
print("probmodel - output ordered arr based on expensive dist model") print("probmodel - output ordered arr based on expensive dist model")
print("probruntime - return iterations of probmodel") print("probruntime - return iterations of probmodel")
print("words - list words in consideration") print("words - list words in consideration")
print("reset - reset state")
print("help - this") print("help - this")