Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while True:
- the_way = random.randint(1,3)
- if the_way == 1:
- print("You encounter a skeleton!")
- time.sleep(1)
- print("rolling for damage")
- enemy_damge = random.randint(0,50)
- elif the_way == 2:
- print("You encounter an orc!")
- time.sleep(1)
- print("rolling for damage")
- enemy_damge = random.randint(0,50)
- elif the_way == 3:
- print("You encounter a Dragon!")
- time.sleep(1)
- print("rolling for damage")
- enemy_damge = random.randint(0,100)
- if hit_or_miss == 1:
- time.sleep(1)
- print ("enemy hits for " + str(enemy_damge))
- stats["health"] = stats["health"] - enemy_damge
- time.sleep(1)
- else:
- time.sleep(1)
- print ("enemy defeated")
- time.sleep(1)
- victory_count = victory_count+1
- print ("victory count: " + str(victory_count))
- time.sleep(1)
- print ("player health is " + str(player_stats["health"]))
- break
Add Comment
Please, Sign In to add comment