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

Added Luck Structure diagram #199

Merged
merged 3 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ settle the debt.

The method then prints out the amount that is owed by `userName1` to `userName2`, and the amount that is owed
by `userName2` to `userName1` after the settlement.

![Sequence Diagram](images/settle.png)

### Group Storage feature
Expand Down Expand Up @@ -207,12 +208,19 @@ To win in the slot machine, all three slots in the MIDDLE row must show the same
The user can either key in `/reroll` or `/exit` to either roll the slot machine or leave the game.
For every new `/reroll`, an additional Expense of 10USD would be created and allocated to a random member in the group
For a win, the user clears all his debts within the group.

Following structural diagram shows the dependency of Luck class

![Luck Structure](images/LuckStructure.png)

Following sequence diagram shows user calls `startGambling()` within Luck class and a new SlotMachine class is instantiated
For every reroll, fillSlots() is called which fills individual slots in the 3 x 3 slot machine with a randomised character

![Sequence Diagram](images/luckGambling.png)




## Product scope

### Target user profile
Expand Down
Binary file added docs/images/LuckStructure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading