This task involves creating the core logic for checking if the player has won or lost the game. The CheckWinLoseComponent will define the logic based off variables such as totalMoneyMade, storeRating, and mealQuality. These values will be evaluated at the end of each day to determine if the player has won by achieving the target goal, or lost due to a poor store rating or insufficient money. The game state (win/lose) will be updated accordingly.
Example (optional)
If the player's total money is greater than or equal to the win amount, a win state is triggered.
If the player's store rating falls below a certain threshold (e.g., 2 stars), a lose state is triggered.
Dependencies
[x] Dependency on variables being properly tracked (e.g., total money and mealQuality)
Milestones
[x] Define win/lose conditions for the game (Sept. 8).
[x] Implement the CheckWinLoseComponent class with methods to evaluate win/lose conditions (Sept. 9).
[x] Test win/lose logic with mocked values (Sept. 11).
Description
Task: [Implement Win/Lose Checking Logic]. Feature: Win Lose Checking
This task involves creating the core logic for checking if the player has won or lost the game. The CheckWinLoseComponent will define the logic based off variables such as totalMoneyMade, storeRating, and mealQuality. These values will be evaluated at the end of each day to determine if the player has won by achieving the target goal, or lost due to a poor store rating or insufficient money. The game state (win/lose) will be updated accordingly.
Example (optional)
Dependencies
Milestones
Completion Deadline: Sept. 11
Documentation
Member