From 27b55dcebc0a2f1ab2538f4dcb47b2a54a77087e Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 19 Feb 2023 14:22:23 +0100 Subject: cannot solve foo --- solve.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'solve.py') diff --git a/solve.py b/solve.py index 816340d..5a62db4 100644 --- a/solve.py +++ b/solve.py @@ -653,7 +653,13 @@ while True: level += 1 except: print("SOMETHING WENT HORRIBLY WRONG!") + print(f"CANNOT SOLVE {s=} {t=}") + cannot_solve = open("cannot_solve.md", "a") + cannot_solve.write(f"# cannot solve\n\n```\n") + cannot_solve.write(f"{s} | {t}\n\n") + cannot_solve.write(f"```") + print(f"level {level}, cache hits: {cache_hits}") try: del cache[last_added_to_cache] @@ -666,7 +672,7 @@ while True: pickle.dump(cache, handle, protocol=pickle.HIGHEST_PROTOCOL) cache_human_readable = open("cache.md", "w") - cache_human_readable.write(f"# cache\n```\n") + cache_human_readable.write(f"# cache\n\n```\n") for k in cache: cache_human_readable.write(f"{k}: {cache[k]}\n") print(k) -- cgit 1.4.1