From 0f380d50981d7aa08b1a80e146bc74b941227c57 Mon Sep 17 00:00:00 2001 From: randomuser Date: Tue, 8 Feb 2022 19:59:53 +0000 Subject: [PATCH] add simple reset function --- solver.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/solver.py b/solver.py index 304e495..51a97b0 100644 --- a/solver.py +++ b/solver.py @@ -68,6 +68,12 @@ while True: print(prob.runtime(words)) elif line.split(' ')[0] == "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": print("welcome to wordlefish, a 'engine' for wordle") print("add - add pattern") @@ -76,5 +82,6 @@ while True: print("probmodel - output ordered arr based on expensive dist model") print("probruntime - return iterations of probmodel") print("words - list words in consideration") + print("reset - reset state") print("help - this")