mirror of
https://git.astronand.dev/minecartchris/Stock-Game.git
synced 2026-06-28 13:37:25 -04:00
Update main.py
This commit is contained in:
10
main.py
10
main.py
@@ -18,7 +18,7 @@ def printMenu(Balance, menu):
|
||||
elif menu == "index":
|
||||
print("The index as of day " + str(day) + " is " + str(indexPrice))
|
||||
elif menu == "daysleft":
|
||||
print("as of today you have " + str(daysleft) + ". have fun!")
|
||||
print("as of today you have " + str(daysleft) + " days left. have fun!")
|
||||
"""
|
||||
def newday():
|
||||
kwiktripStockPrice = kwiktripStockPrice + random.randint(-100.99, 100.99)
|
||||
@@ -123,6 +123,14 @@ while daysleft > -1:
|
||||
walmartStockPrice = abs(walmartStockPrice + random.randint(-100, 100))
|
||||
carStockPrice = abs(carStockPrice + random.randint(-100, 100))
|
||||
|
||||
marketCrash = random.randint(0, 1000)
|
||||
if marketCrash == 555:
|
||||
kwiktripStockPrice = -200
|
||||
appleStockPrice = -200
|
||||
microsoftStockPrice = -200
|
||||
walmartStockPrice = -200
|
||||
carStockPrice = -200
|
||||
print("the market has crashed every stock is now -200 in value")
|
||||
|
||||
stockcost = [kwiktripStockPrice, appleStockPrice, microsoftStockPrice, walmartStockPrice, carStockPrice]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user