diff --git a/Group_game/level_1.py b/Group_game/level_1.py index 64878c574c7e7d56c0a8b27501ec64107ec6d8a5..bf8fa2bdcbc1e11c4a439d9a89f840adc0b00586 100644 --- a/Group_game/level_1.py +++ b/Group_game/level_1.py @@ -18,16 +18,19 @@ def open_diary(room_items): def open_safe(room_items): print("To open this safe you need a passcode.") + time.sleep(0.8) print("Please enter the passcode.") passcode = input() if passcode == "042": print("THE PASSCODE WAS CORRECT!") + time.sleep(0.8) print("Inside the safe you found a pair of batteries.") time.sleep(0.8) room_items.append(item_batteries) item_safe.update({"open": True}) else: print("You try the code", passcode, "but the safe wouldn't open.") + time.sleep(0.8) print("TRY AGAIN.") time.sleep(0.8) @@ -64,15 +67,21 @@ def use_torch(room): time.sleep(0.8) else: print("You cannot do that") + time.sleep(0.4) def read_note(): if item_note in inventory: print("You read the note and notice a strange puzzle") + time.sleep(0.8) print("682 >> one digit is correct & well placed") + time.sleep(0.8) print("614 >> one digit is correct but wrong placed") + time.sleep(0.8) print("206 >> two numbers are correct but wrong placed") + time.sleep(0.8) print("738 >> nothing is correct") + time.sleep(0.8) print("870 >> one number is correct but wrong placed") time.sleep(5) else: diff --git a/Group_game/level_2.py b/Group_game/level_2.py index 982dcf0521a42aebbda1720e87dc482ce8fdb0c6..42005397e5f6445ef7e0224755d85e5a26f30e0a 100644 --- a/Group_game/level_2.py +++ b/Group_game/level_2.py @@ -16,7 +16,9 @@ def drink_wine(): if counter < 1: time.sleep(1) print('You drink a glass of the wine, but have not got much closer to getting the clue.') + time.sleep(0.8) print('Would you like to drink another glass?') + time.sleep(0.8) print('YES or NO') more = str(input('> ')) if more == 'yes': @@ -28,7 +30,9 @@ def drink_wine(): time.sleep(1) print() print('You enjoy a second glass of wine, but can not see the bottom yet.') + time.sleep(0.8) print('Would you like to drink another glass?') + time.sleep(0.8) print('YES or NO') more = str(input('> ')) if more == 'yes': @@ -38,8 +42,14 @@ def drink_wine(): x = 2 else: time.sleep(1) - print() + print(".") + time.sleep(0.2) + print(".") + time.sleep(0.2) + print(".") + time.sleep(0.2) print('You pass out from too much alchohol consumption.') + time.sleep(0.8) print('You wake up 5 minutes later on the floor of the wine cellar.') time.sleep(1) print('...') @@ -56,10 +66,13 @@ def close_valve(): if location_boileroom["valve_open"]: location_boileroom["valve_open"] = False print("Well done! You stopped the leak!") + time.sleep(0.8) else: print("Valve is closed") + time.sleep(0.8) else: print("You need a screwdriver to close the valve") + time.sleep(0.8) @@ -69,10 +82,13 @@ def open_trapdoor(room): if key_card in inventory: trap_door["open"] = True else: + time.sleep(0.8) print("You need a key card to open the lock.") else: + time.sleep(0.8) print("The electrical lock requires batteries to open.") else: + time.sleep(0.8) print("Command isn't available in this room") @@ -85,6 +101,7 @@ def use_battery_lock(room): time.sleep(1) def gas_timer(timer): + time.sleep(0.8) current_time = datetime.now() time_taken = current_time - timer time_left = 180 - time_taken.total_seconds()