Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 34 additions & 1 deletion game.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,37 @@
print(player_money)
print()
time.sleep(1)
# ---section end--- #
# ---section end--- #


# ---Section Author: Vasyl--- #
# ---Section Author: <your-name>--- #
print("There is a warrior who stands in your way!")
print("1. Fight him!")
print("2. Try negotiating with him")
print()
decision = ""
while(decision == ""):
decision = input("Pick a number: ")
print()
if (decision == "1"):
print("You got injured but you steal his money!!!")
player_health -= 20
print("Your health now:")
print(player_health)
elif (decision == "2"):
print("You are able to get him to work with you on your mission")
player_items.append("Warrior")
print("Your items now:")
print(player_items)
print()
time.sleep(1)
# ---section end--- #

# ---Section Author: Vasyl--- #
print("Your next adeventure is attractive girl going in your direction")
print("1. Talk to her!, ask for a help!")
print("")
Comment on lines +120 to +123

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what next?