Skip to content

Commit

Permalink
Merge pull request #199 from MonkeScripts/master
Browse files Browse the repository at this point in the history
Added Luck Structure diagram
  • Loading branch information
MonkeScripts authored Apr 15, 2024
2 parents 03d6b99 + a2f0dda commit 6e675ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,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 @@ -211,13 +212,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.

0 comments on commit 6e675ad

Please sign in to comment.