Use Case Diagram for the Online Blackjack Game
Learn how to define use cases and create the corresponding use case diagram for the Blackjack game.
Let’s build the use case diagram of the online Blackjack game and understand the relationships between its main actors and system functions. First, we’ll define the different elements of our system, followed by the main actors and their associated use cases.
System
Our system is an online Blackjack game. It manages player interactions, game rounds, betting, and outcomes between players and dealers.
Actors
Now, we’ll define the main actors of our Blackjack game.
Primary actors
Player: The main participant in the game. A Player can join games, place bets, perform in-game actions (hit, stand, resign), and manage their account (create, update, reset password, cancel membership, login/logout).
Secondary actors
Dealer: The Dealer manages the Blackjack table, controls the game flow, deals cards, enforces rules, and completes payouts. The Dealer may also manage player accounts (e.g., block members).
Use cases
This section will define the use cases for the Blackjack game. We have listed the use cases according to their interactions with a particular actor.
Note: Some use cases will occur multiple times because they are shared among different actors in the system.
Player
Create account: Register a new player profile in the Blackjack system.
Login/Logout: To securely log in or out of the Blackjack game.
Update Account: Users can edit personal account details, such as username, password, and contact information, or even cancel their memberships.
View Open Games: Browse a list of available Blackjack games waiting for players to join.
Join a Game: Enter an open Blackjack table as a participant.
Place Bet: Wager a specified amount for the current round.
Hit: Request an additional card from the dealer during a round.
Stand: End the turn and retain current cards, awaiting game outcome.
Resign Game: Leave an active game before it is finished.
Dealer
Create Account: Register a new dealer profile in the system.
Login/Logout: Access or exit the dealer interface with credentials.
Manage Account: Oversee player accounts, including blocking a member from a game, and cancel their memberships.
Create New Game: Set up a new Blackjack table or game round.
View Open Games: Monitor all open games and wait for players.
Create Hands: Deal two cards to each player and the dealer at the start of a round.
Draw Card: Add a card to any hand during gameplay.
Collect or Payout: Settle bets by collecting losses or awarding winnings at the end of each round.
Relationships
This section describes the relationships between and among actors and their use cases.
Associations
The table below shows the association relationship between actors and their use cases.