Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Stock Market Module #67

Open
wants to merge 49 commits into
base: feature/stocks
Choose a base branch
from
Open

Conversation

SSingum
Copy link

@SSingum SSingum commented Nov 16, 2024

Integrating the stock market module into the rest of Terminal Monopoly. See the commit history.

ssundal and others added 30 commits September 19, 2024 19:04
…ng time. Want to make it so the minutes update like a stopwatch instead of just in 12 minute increments
…t how to run it alongside market time and when to start giving prompts to user (limit and stoploss implementation tbd)
…ng for left right display of stocks/portfolio.
…heses issue, got keyboard text to print in the correct place using ascii, fixed random printing of x-axis in incorrect location
…menu show up so everything is in a compact design that will fit in the module size requirements), also incorporated ANSI escape codes for majority of functions to ensure a standardized placement of each line (select_stock and display_graph functions need ANSI implementation to ensure proper printing for full functionality), need to work on removing global variables, and need to finish implementation of the buy, sell, and display graph feature.
…e terminal. Now we need to remove global variables.
ssundal and others added 16 commits October 24, 2024 18:03
… displayed three for each column. Portfolio display now includes total value of portfolio and the equity value for each of the stocks the player has in their portfolio. ALL GLOBAL VARIABLES REMOVED. The global variables are now included in the portfolio class (potential future changes could be to create a new class solely for those variables but everything does currently function as expected).
…to be fixed (select a stock disappears and screen pauses but prices are still updating in the background)
…re you can use g to switch between the graphs of stocks and the y-axis values update for each graph. Still need to test to make sure the displayed price is accurate.
…r a stock cannot be displayed unless the user first hits enter to select that stock and then g to display that stock's graph
…ized the components of the graph so different parts are printed separately from other parts of the graph. The prices on the y-axis are now fixed unless max/min is greater than or less than the top or bottom price, functioning like a real stock graph for the stock market.
-A player can now only own 5 stocks at a time
…ld in the portfolio and the display remains within the bounds allowed for the stock module
…t a gain/loss percent amount for each position
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants