From eec0e5e6cfb0e22ce553e55492d70ca7b49d4cab Mon Sep 17 00:00:00 2001 From: emmaqbrown Date: Tue, 24 Aug 2021 10:28:08 +0800 Subject: [PATCH] fix reset --- returnToShip.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/returnToShip.py b/returnToShip.py index 64723ef..4752a67 100644 --- a/returnToShip.py +++ b/returnToShip.py @@ -1,11 +1,13 @@ -from pathlib import Path +from pathlib import Path +import shutil from datetime import datetime from datetime import timedelta import subprocess def reset(): - with open("./bag/treasure.jpg", "w") as keyfile: - keyfile.write("lost") + + shutil.rmtree('bag') + Path('adventure/seafloor/coral_reef/.timer').unlink() print(" You are swimming as fast as you can towards the boat but you can") print(" feel the water begin to pull you back as the sea monster opens its")