Bird
0
0

Which class should manage the list of players in a multiplayer board game system?

easy🧠 Conceptual Q1 of 15
LLD - Design — Tic-Tac-Toe Game
Which class should manage the list of players in a multiplayer board game system?
ABoard class
BGame class
CPlayer class
DMove class
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of Game class

    The Game class typically manages the overall game flow, including players and turns.
  2. Step 2: Analyze responsibilities of Board and Player classes

    The Board class manages the game state, and Player class represents individual players, not the collection.
  3. Final Answer:

    Game class manages the list of players -> Option B
  4. Quick Check:

    Player management = Game class [OK]
Quick Trick: Game class controls players and turns [OK]
Common Mistakes:
MISTAKES
  • Assigning player list to Board class
  • Storing players inside Player class itself

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes