forked from ufosc/TERMINALMONOPOLY
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathto_do.txt
91 lines (80 loc) · 3.08 KB
/
to_do.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
Clock:
need to get the minutes to increment by 1 really quickly instead
of incrementing by 12 every second so it resembles something like
changing quickly on a stopwatch
Display:
need to work out how we want to display all of this in the terminal
Terminal:
need to work out terminal commands/what commands we want
(ex: buy, sell, stop loss, etc...)
Need to work on using the set cursor to have the stock/portfolio update on the same lines in the terminal
PROBLEM: what to do when stocks go to values less than or equal to zero
SOLUTION: bankrupt company? we need actual risk
parameters to declare bank
market cap :(
--> do you want to make it go to 0.0001?
# market = stock_market()
# num_players = 4
#
# #find out where we are getting name from
# player_name = "Name"
# #implement check to create either 2, 3, or 4 portfolios tbd
# player1_portfolio = portfolio(player_name, market)
# player2_portfolio = portfolio(player_name, market)
# player3_portfolio = portfolio(player_name, market)
# player4_portfolio = portfolio(player_name, market)
#
# market.add_stock("PLZA", 20.00, -5, 5)
# market.add_stock("BLVD", 5.00, -10, 10)
# market.add_stock("DRVE", 0.01, -15, 15)
# #put an escape code in front of this \033
#
# while
# user_input = input("Please select one of the following: BUY or SELL \n")
#
#
# #implement check for which of the players is making the request
# if (user_input == "BUY"):
# # print("buy executed")
# ticker_name = input("Please enter name of ticker you want to buy: \n")
# for each_stock in market.stocks:
# if (each_stock == ticker_name):
# amount = (int)(input("Enter number of stocks: \n"))
# choice = input("LIMIT or BUY NOW \n")
# if (choice == "LIMIT"):
# limit = input("Enter amount:\n")
# break
# if (choice == "BUY NOW"):
# print("You have bought " + ticker_name + "!\n")
# player1_portfolio.buy_stock(ticker_name, amount)
# break
# else:
# print("Invalid ticker!")
#
#
#
# if (user_input == "SELL"):
# # print("sell executed")
# ticker_name = input("Please enter name of ticker you want to sell: \n")
# for each_stock in market.stocks:
# if (each_stock == ticker_name):
# amount = (int)(input("Enter number of stocks: \n"))
# choice = input("STOPLOSS or SELL NOW \n")
# if (choice == "STOPLOSS"):
# stop_loss = input("Enter amount: \n")
# break
# if (choice == "SELL NOW"):
# print("You have sold " + ticker_name + "! \n")
# player1_portfolio.sell_stock(ticker_name, amount)
# break
# else:
# print("Invalid ticker!")
#
# # print (sys.argv)
#
# condition = True
# counter = 0
# last_time = time.time()
#
# player1_portfolio.display_portfolio()
#