Skip to content
Open
Show file tree
Hide file tree
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
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# python-adventure
# Balsa of Kanbal's Python Adventure

A fun little game where you get to choose your own adventure!
Scenario: You have developed your skills as a developer, learning variable types, loops, and conditionals. Now it's about time for you to put those skills to the test.

You have been tasked by a group of elite developers to create a command line terminal role-playing game. You are asked to create scenarios for the player and submit a pull request on Github.

Good luck!
23 changes: 22 additions & 1 deletion game.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,25 @@
player_items.append("Potion")
print("Your items now: ")
print(player_items)
# ---section end--- #
# ---section end--- #


# Section author: Balsa #
print("The Kanbalese police stop you and try to collect taxes from you! What do you do!")
print("1. Fight the police")
print("2. Just pay your taxes")
decision = ""
while(decision == ""):
decision = input("Pick a number")
if (decision == "1"):
print("You got arrested! Game over!")
exit()
elif (decision == "2"):
print("You lost all your money!")
player_money = player_money * 0.8
print("The money you have left is:")
print(str(player_money))
else:
print("Please enter 1 or 2")

# End section #