Commit 9c772815 authored by simon.nutsey's avatar simon.nutsey

Update PythonGame

parent 8c1d9166
...@@ -4,8 +4,16 @@ yes_no = ["yes", "no"] ...@@ -4,8 +4,16 @@ yes_no = ["yes", "no"]
cash = ["easy", "normal", "hard"] cash = ["easy", "normal", "hard"]
insurance = ["high","low","none"] insurance = ["high","low","none"]
firstcontract = ["1","2","3"] firstcontract = ["1","2","3"]
directions = ["left","right","forward"]
route = ["route 1","route 2"]
#integers
bankbal = 0 bankbal = 0
insurancevalue = 0 #used at the end of a contract insurancevalue = 0 #used at the end of a contract
contract1 = 0
contract2 = 0
contract3 = 0
contractpicked = 0
...@@ -78,4 +86,32 @@ print("\nCongratulations Captain "+playername+" you're all ready to set sail. Ge ...@@ -78,4 +86,32 @@ print("\nCongratulations Captain "+playername+" you're all ready to set sail. Ge
response3 = "" response3 = ""
while response3 not in firstcontract: 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") 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")
\ No newline at end of file if response3 == "1":
contract1 = 3
contractpicked = 1
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")
if response3 == "2":
contract2 = 7
contractpicked = 2
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")
if response3 == "3":
contract3 = 5
contractpicked = 3
print("Scotland to Portugal, easy enough just be careful the sea can get a bit rough.\n")
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 Le Havre - France\n")
print("You set sail out of the port in Aberdeen and begin the journey to France\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 town and the see looks calm. Route 2 is faster but the weather isn't lookin all that promising. Which route do you want to take?")
\ No newline at end of file
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