Skip to content

115 minigames #119

Merged
merged 23 commits into from
May 24, 2026
Merged

115 minigames #119

merged 23 commits into from
May 24, 2026

Conversation

tommyah
Copy link
Member

@tommyah tommyah commented May 24, 2026

Added minigames.

They can be found by using the navbar in the top bar, or by clicking the "boost" button on a stock on the dashboard.

There are currently three minigames available:

  1. Clicker game: Click a button to gain score. The button teleports after every click

  2. Find the stock: You get a target stock symbol. Find the match in a grid of stock symbols. Wrong choices deduct points.

  3. Timed inputs: Time SPACE or ENTER keys to get points marked by a green section of a circle. Wrong input deduct points.

tommyah added 23 commits May 23, 2026 15:08
The interface will function as a content replacement option in the Strategy principle.
The view acts as the context module in the Strategy design pattern.
Fortune double value represents how "lucky" that stock will be in the next week. Setter and getter method for value. Also added compatibilty with exchange advance week method.
Bigdecimal values can have extreme amounts of decimals. Transaction cards now round by converting to float (only visually)
Added widget enum that functions similarily to ViewEnum. Also added event subscribing to ingamecontroller so any publisher can change widget.
Overall improvements across various classes.
Documentation and setting up simple helper methods, as well as disabling button pressing by pressing space or enter (key used in minigame(s)).
The game engine controller now changes the fortune of a stock based on game results.
Integrated minigames with the application.
It is now possible to select a stock you want to boost in dashboard page. This will take you to the minigames section and select the stock for you.
Fixed bug where player could buy upgrade even if they did not have enough score, by adding an internal reference to score in the clicker game game.
Reduced time for minigames, and increased amount of points gained to compensate.
Reworked the clicker game. Previously, the game was designed around clicking a static button and buying an upgrade for it. Now, the game works more like an aim trainer, where the button teleports after every click.
@tommyah tommyah linked an issue May 24, 2026 that may be closed by this pull request
4 tasks
@tommyah tommyah requested a review from etsorens May 24, 2026 18:50
Copy link
Member

@etsorens etsorens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@etsorens etsorens merged commit 7401a6f into main May 24, 2026
1 check passed
@etsorens etsorens deleted the 115-minigames branch May 24, 2026 20:05
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Minigames
2 participants