-
Notifications
You must be signed in to change notification settings - Fork 0
Use‐cases
The system creates the Board and other game assets, and shows the list of Players from a saved game. If there is no saved game, the system prompts the user to register Players of a new game (see UC2: registerPlayer).
- There is a saved game, but the user wishes to start a new one: If saved game data exists, the system must prompt the user to make a choice between continuing or starting a new game.
The system prompts the user to type how many players are playing. The user types an input, followed by enter.
The system prompts the user to type the name of a player. The user types an input, followed by enter.
The system uses the input to create a Player and adds it to the list of players.
System continues to ask for names until the intended number of players has been reached.
System randomizes the order of the list to determine which player will start.
Rainy day:
- the user wants to add more players than the game can support: For each user input, the system checks that the number of players added is no more than 6.
The system shows the name of the Player whose turn it is. The user confirms, and throws the Dice. The system shows the sum of two random numbers each between 1 and 6. The value determines which Field is activated (invokes UC4:LandAndAct).
When the player has had his/her turn, the user is given an option quit the game (> endGame) or continue. The user chooses to continue and the system displays the next player’s name.
- the user quits the game: UC5 endGame is invoked.
The System updates the players position to the index number of the Field and displays the option associated with the field. The user either rejects or accepts the option. The system processes the user's response and carries out the action associated with the option. (ie. Option:"buy" -> Action: ownership and money withdrawal)
- There is no option associated with the field (ie. Start field): The system will not show any option. The game continues with the next player.
If the Player quits, the system displays option to
- quit and save game - the system saves the game data, and displays the status of the game. The program ends.
- quit and start new game (> UC2 RegisterPlayers)
The system checks for sufficient funds on the player's balance, withdraws the amount to the Player's account and displays the new balance.
There is not sufficient funds: a message informs that the Player has lost and is removed from the playerlist. The game continues if there are more than 1 player left on the list. Otherwise the game ends (> endGame option 2)
The system checks if the Field is owned by another Player. If the Property is not owned and Players account shows sufficient funds an option to buy is displayed.
- onAccept(option to buy) If the player accept the option buy, the System withdraws the cost of the field from the Player’s account and adds a deed to the Player's account.
- onReject(option to buy) The game continues [possibility of auction feauture]
- The Property (Plot) is owned by the Player: the system will check if the player owns the monopoly. If so the System will check if there is sufficient funds on the Player’s account. If either of these checks fail, no option will be displayed. If both check succeed, the system will display the option to build.
- onAccept (option to build). The system will withdraw the cost of the building and register it to the deed and update the income value of the field.
- onReject (option to build). Game continues
The property (Plot and Business) is owned by another Player: The system displays option to pay the rent (field's calculated income value).
- onAccept(option to pay) The System transfers the value of the field's income from the Player to the owner. (UC6 WithdrawMoney)
- onReject(option to pay) The game ends.
The property is not owned, but there are not sufficient funds to buy: the option to buy will not be displayed.
The system shows the message of the next card in the card deck. The System carries out the action associated with the card.
System asks player to pay a fixed amount.
- onAccept: (option to pay fixed amount)the system withdraws the amount from the Player's account.
- onReject: the system shows a dialog informing the Player that instead, 10 % of his assets(cash, value of deeds) will be withdrawn from his Account. (> UC6 WithdrawMoney)