Use Case Sequences
These are sequence diagrams that line up with the use cases, along with descriptions of how the system functions at each step.
Use Case 1 – Create Lobby
- Frontend makes a POST /lobby request.
- Backend returns a unique three ingredient code.
- Frontend shows the lobby screen with the code.
Use Case 2 – Share Lobby via Link
- User clicks the copy icon.
- Frontend copies the lobby URL and shows a check mark.
- User pastes the link in an external chat.
Use Case 3 – Share Lobby Code (Audio)
- User clicks the speaker icon.
- Device reads each ingredient aloud for nearby friends.
Use Case 4 – Join Lobby via Link
- Join screen opens with the code filled in.
- Frontend POSTS /lobby/join with the code.
- Backend returns the player ID.
- Frontend shows the lobby view.
Use Case 5 – Join Lobby via Manual Code Entry
- User selects the three ingredients.
- Frontend POSTS /lobby/join with the code.
- Backend returns the player ID.
- Frontend shows the lobby view.
Use Case 6 – Start Game
- A user in the lobby clicks start game.
- Frontend sends a start game message over WebSocket.
- Server broadcasts start game message and role assignments.
- Frontend shows the role modal and station.
Use Case 7 – Walk through Joyride
- Frontend shows tutorial screens with narration.
- User steps through each screen.
- User clicks Done and gains control of the station.
Use Case 8 – Skip Joyride
- Frontend shows the first tutorial screen.
- User closes it, and Frontend enables station controls.
Use Case 9 – Manager Receives Customer Order
- Server sends a new order message.
- Frontend shows the customer's order in a thought bubble.
Use Case 10 – Manager Relays Order with AAC
- Manager taps the categories and the items needed in each one to play them aloud via the AAC Board.
- Device speaks each part of the order for employees to hear.
Use Case 11 – Employee Listens to Order
- Employee hears the customer's order request from the manager.
- Employee notes the items for their station.
Use Case 12 – Employee Requests Order Repeat
- Employee presses the button to repeat the order.
- Employee’s device asks the manager to repeat the order aloud.
Use Case 13 – Prepare Burger
- Burger cook selects and stacks ingredients, with the device speaking each ingredient name aloud - if they make any mistake they can press undo to take off the last ingredient placed.
- Burger cook clicks the Send Burger button.
- Frontend sends a burger message to the server.
- Server sends a message to the manager's client, adding the burger to their screen.
Use Case 14 – Prepare Sides
- User does the cooking process on client side.
- User clicks the send button.
- Frontend sends the side message to the server.
- Server displays the side item on the manager's screen.
Use Case 15 – Prepare Drinks
- Drinks cook fills the correct drink.
- Frontend sends a drink message.
- Drink item appears on the manager’s screen.
Use Case 16 – Manager Serves Order
- Manager sees completed order items on the screen.
- Manager clicks Send Order.
- Backend scores the order and broadcasts new earnings.
Use Case 17 – Day Complete
- Server sends a day complete message.
- Frontend shows the Day Complete modal and summary.
- User clicks Next Day.
- Frontend loads the next day’s restaurant scene.
Use Case 18 – Role Assignment for Next Day
- Server sends a role assignment message when roles change.
- Frontend displays the new role card.
- Frontend loads the station screen for that role.
Use Case 19 – Game Complete
- Server sends a game complete message after the final day.
- Frontend shows the Game Complete modal and final summary.
- User clicks Back to Home.
- Frontend displays the landing screen.