From 43c615646ab31626e4f8b8fa074a669195b4306a Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Tue, 18 Oct 2022 21:11:27 +0200 Subject: Added noun information also when answer is correct, removed debug print --- kasus.py | 4 +--- solver.py | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/kasus.py b/kasus.py index 911cb5d..68b0be0 100644 --- a/kasus.py +++ b/kasus.py @@ -24,9 +24,7 @@ while True: if solution.evaluate(response): correct += 1 - print(f"{Fore.GREEN}Richtig ({correct}/{total})") + print(f"{Fore.GREEN}Richtig ({correct}/{total}):{Style.RESET_ALL} {solution.noun}") else: print(f"{Fore.RED}Falsch ({correct}/{total}):{Style.RESET_ALL} {solution.full}, {solution.noun}") - print(f"{Style.RESET_ALL}") - diff --git a/solver.py b/solver.py index 7935204..423e2b4 100644 --- a/solver.py +++ b/solver.py @@ -37,7 +37,6 @@ def get(): solution = solve(query) return (query, solution) except Exception as e: - print(e) continue raise Exception("Could not find query after 10 attempts!") -- cgit v1.2.3