Commit b46b9a45 authored by simon.nutsey's avatar simon.nutsey

Update PythonGame

parent 9afc7f56
# PlayerCommands
###############################################################################################
# PlayerCommands#
###############################################################################################
yes_no = ["yes", "no"]
cash = ["easy", "normal", "hard"]
......@@ -7,14 +9,27 @@ firstcontract = ["1","2","3"]
directions = ["left","right","forward"]
route = ["route 1","route 2"]
#integers
###############################################################################################
#integers#
###############################################################################################
bankbal = 0
insurancevalue = 0 #used at the end of a contract
insurancevalue = 0
contract1 = 0
contract2 = 0
contract3 = 0
contractpicked = 0
################################################################################################
#routes#
################################################################################################
route1 = 0
route2 = 0
# intro
......@@ -27,40 +42,52 @@ print("Good morning Captain " + playername + "\n\nWhat is your ships name?")
shipname = input("")
print("Excellent name Captain. SS." +shipname+ " it is.\n")
#difficulty setting
###############################################################################################
#difficulty setting#
###############################################################################################
response1 = ""
while response1 not in cash:
response1 = input("Now Captain " + playername + ", The matter of money needs to be discussed.\n£2,000,000 Easy\n£1,000,000 Normal\n£500,000 Hard\nHow much would you like to borrow to get you started?\n\neasy/normal/hard\n")
if response1 == "easy":
print("Very well Captain " + playername + " We will loan you the money. Naturally at the end of the month we expect the cash back but any profit you make you are welcome to keep.\n")
bankbal= 2000000
print("Your current bank balance is £",bankbal)
elif response1 == "normal":
print("Very well Captain " + playername + " We will loan you the money. Naturally at the end of the month we expect the cash back but any profit you make you are welcome to keep.\n")
bankbal = 1000000
print("Your current bank balance is £",bankbal)
elif response1 == "hard":
print("Very well Captain " + playername + " We will loan you the money. Naturally at the end of the month we expect the cash back but any profit you make you are welcome to keep.\n")
bankbal = 500000
print("Your current bank balance is £",bankbal)
else:
print("Captain " +playername+ " Im not sure what you said there please try again.\n")
#insurance
#############################################################################################
#insurance#
#############################################################################################
response2 = ""
while response2 not in insurance:
response2 = input("\nThe sea can be a cruel mistress. As your adivisor I strongly urge you to get some insuance, but of course thats your choice captain. We have 2 types available, take a look....\n\nHIGH VALUE INSURANCE\n-Cargo up to £2,000,000 is covered\n-Loss of any cargo is covered\n-Short to long distances covered\n~Price £200,000~\n\nLOW VALUE INSURANCE\n-Cargo UP TO £1,000,000 covered\n-Loss of cargo is not covered\n-If you transport cargo over £1,000,000 the insurance will be void\n~£50,000~\n\nPlease pick your insurance high/low/none\n")
if response2 == "high":
insurancevalue = 2
bankbal = 1800000
print("Excellent choice captain, exactly what i would have gone for myself\n")
print("You choose the high value insurance. Your bank balance is now £",bankbal)
print("----------------------------------------------------------------------------\nYou choose the high value insurance. Your bank balance is now £",bankbal,"\n----------------------------------------------------------------------------")
print("\n")
elif response2 == "low":
insurancevalue = 1
bankbal = 1950000
......@@ -69,6 +96,7 @@ while response2 not in insurance:
print("\n")
elif response2 == "none":
insurancevalue = 0
print("Well i'm not going to say that it's a stupid idea captain but you are the one in charge")
......@@ -79,43 +107,114 @@ while response2 not in insurance:
else:
print("I'm sorry captain could you please say that again?\n")
#game start
print("\nCongratulations Captain "+playername+" you're all ready to set sail. Get some rest and we will head over to the contracts office tomorrow morning.\n\n")
################################################################################################
#game start#
################################################################################################
print("\n-----------------------------------------------------\nCongratulations Captain "+playername+" you're all ready to set sail. Get some rest and we will head over to the contracts office tomorrow morning.\n-----------------------------------------------------\n\n")
("DAY 1\nBalance-£",bankbal,"\nWeather:Clear\nLocation:Contracts Office\n")
###############################################################################################
#BUY CONTRACT#
##############################################################################################
response3 = ""
while response3 not in firstcontract:
response3 = input("Good Morning captain we have 3 contracts available for you to carry out. Please take a look....\n\nCONTRACT 1 ~ COST: £200,000 ~ PAYOUT ~ £1,000,000 ~\n-Cargo in excess of £10,000,000\n-Scotland -> Sweden\n-3 Day limit from acceptance of contract\n\nCONTRACT 2 ~ COST:£10,000 ~ PAYOUT ~ £50,000~\n-Cargo in excess of £100,000\n-Scotland -> France\n-7 day time limit from acceptance of contract\n\nCONTRACT 3 ~ COST: :£75,000 ~ PAYOUT ~ £600,000~\n-Cargo in excess of £2,500,000\n-Scotland -> Portugal\n-5 day time limit from acceptance of contract\n\nplease pick a contract 1/2/3\n")
if response3 == "1":
contract1 = 3
contractpicked = 1
bankbal = bankbal-200000
print("Okay Scotland to Sweden. Please be careful with this cargo its worth a lot of money and is very important. You have 3 days to get there so you may want to get a move on captain.\n")
elif response3 == "2":
contract2 = 7
contractpicked = 2
bankbal = bankbal-10000
print("Scotland to France. I went to France once but it wasnt for me. Anyway that doesn't matter, pretty simple one this run just get to France in 7 days and get paid.\n")
elif response3 == "3":
contract3 = 5
contractpicked = 3
bankbal = bankbal-75000
print("Scotland to Portugal, easy enough just be careful the sea can get a bit rough.\n")
else:
print("Have you been in the pub again captain? you aren't making any sense try saying that again but slower")
######################################################################################
#DAY 1# CONTRACT 1
######################################################################################
print("DAY 1")
print("WEATHER: FAIR")
print("TIME: 12:36pm")
print("BALANCE: £",bankbal)
if contractpicked == 1:
print("DAYS LEFT: 3")
print("Location: Roswyth Docks - Aberdeen")
print("Target Location: Port of Gothenburg - Sweden\n")
print("You set sail out of the port in Aberdeen and begin the journey to Sweden\n")
response4 = ""
while response4 not in route:
response4 = input("You glance over at your GPS system and you have a choice of routes that you can take. Route 1 is the recommened route, you will arrive on time and the sea looks calm. Route 2 is faster but the weather isn't lookin all that promising. Which route do you want to take?\n\n route 1/route 2")
response4 = input("You glance over at your GPS system and you have a choice of routes that you can take. Route 1 is the recommened route, you will arrive on time and the sea looks calm. Route 2 is faster but the weather isn't lookin all that promising. Which route do you want to take?\n\n route 1/route 2\n\n")
if response4 == "route 1":
print()
route1 = 1
print("You decide against going for the faster route and take the safer route\n")
if response4 == "route 2":
route2 = 1
print("You have chosen to take the faster route. You are expected to arrive in Sweden a day ahead of time\n")
print("The day turns quickly into night as you keep on plodding on your journey\n")
########################################################################################
#DAY 2#
########################################################################################
print("DAY 2")
print("WEATHER: Light Rain")
print("TIME: 07:00am")
print("BALANCE: £",bankbal)
if contractpicked == 1:
print("DAYS LEFT: 2")
print("Location: Atalantic Ocean")
print("Target Location: Port of Gothenburg - Sweden\n")
print("You are awaken by your alarm at 7am and you are ready to continue with your Journey\n")
response5 = ""
while response5 not in route:
response5 = input("You hear over the ships radio: \n ~STORM WARNING~ ATTENTION ALL SHIPS IN THE VICINITY A STORM WILL BE PASSING OVER THE AREA WITHIN THE NEXT HOUR PLEASE STEER CLEAR OF THE AREA ~STORM WARNING~\n\n The radio then goes silent and you look back at your GPS and notice 2 routes that you could take. Route 1, the safest option but you may arrive in Sweden a little bit later than you had planned. Route 2 heads through the stormy sea and you will arrive in Sweden ahead of schedule")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment