Question: For the following Case study please create: class diagram activity diagram for the whole game sequence diagrams for the processes described above state machine diagram

For the following Case study please create:

class diagram activity diagram for the whole game sequence diagrams for the processes described above state machine diagram for the deck of cards

A full deck of cards has 52 cards. There are 4 suits (Hearts, Diamonds, Spades and Clubs).

Each suit has cards numbered from 1 (Ace) to 10, then Jack, Queen and King.

The deck for this game must include one Joker - which does not belong to any suit. A subset of the complete deck is used to play this game, comprising of 43 cards (some of the lower value cards are left out). To play the game, the deck is shuffled and dealt out to players as follows:

Each of the four players gets a hand of 10 cards, and 4 cards are left in the 'kitty'. No cards are visible until players get their hand. Players need to be able to turn over their cards to see the value of each card. One player is allowed to swap selected cards from their hand with the kitty.

To play, each player in turn takes one card from their hand and places it on a pile (in the game this is sometimes called a 'trick'). There is a complicated scoring system to decide which player wins each 'trick'.

Design Scope For this assessment you do NOT need to model all the required processes. The processes which should be included are: create the game with 4 players and the deck deal cards (which should create the kitty and 4 instances of a 'hand' of cards) play one 'trick' of a game (where each player places a card on the table, and a winner is decided). (Note that a 'round' is just a repeat of this process until all cards have been played.) Additional processes (which are NOT needed for this assessment) could involve the bidding process, tallying the score for each player, starting a new round, etc. State Machine Diagrams are not always necessary in UML modelling. For this assessment you only need ONE State Machine Diagram. One suggestion is that you could use a state machine to model the states of a 'deck'. Think about what happens to a deck - it can be shuffled or sorted or it may be empty (after all cards have been dealt). You should not be able to deal from a deck that is not shuffled, or is empty

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!