#-------------------------------------------------------------------------- # Name : Endgame # Purpose : 11DGT # Author: Shreshth Tyagi # Created : 17/2/25 # Copyright : © Shreshth Tyagi 17/02/25 #-------------------------------------------------------------------------- # import libraries from ast import While import random import time # Set starting variables cap_health = 50 thanos_health = 100 thanos_sword = 0 cap_mjolnir = 0 deflect = 0 cap_choice = " " #Intro print("The sky grows darker as the army of Thanos moves closer.") time.sleep(2) print("Thor and Tony lie battered and motionless on the ground from the previous encounter.") time.sleep(3) print("It is up to you, Cap, to finish this. The fate of the universe is your weight to bare.") time.sleep(3.5) print("You stand there, hurt. But you have your shield in arm hand and wield Mjolnir in the other.") time.sleep(4) print("You are worthy, but will the power of Thor be enough....") time.sleep(3) print("You are in the ENDGAME now") time.sleep(1) While thanos_health > 0 and cap_health > 0: #Print current health levels time.sleep(1) print() print("Current Health") print("Cap has {} HP...".format(cap_health)) print("Thanos has {} HP...".format(thanos_health)) time.sleep(2) #Player selects their action print() print("What do you choose?..") print("[a]ttack with Mjolnir") print("or") print("[d]efend with your shield") cap_choice = input("Your choice?... ") print()