Bird
0
0

Which class is primarily responsible for keeping track of the current state of the game board in a typical game design involving Board, Player, and Game classes?

easy🧠 Conceptual Q11 of 15
LLD - Design — Tic-Tac-Toe Game
Which class is primarily responsible for keeping track of the current state of the game board in a typical game design involving Board, Player, and Game classes?
AScore class
BPlayer class
CGame class
DBoard class
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of the Board class

    The Board class holds the layout and current state of the game, such as positions of pieces or marks.
  2. Step 2: Compare with Player and Game classes

    The Player class stores player details, and the Game class manages turns and rules, not the board state.
  3. Final Answer:

    Board class -> Option D
  4. Quick Check:

    Board = game state holder [OK]
Quick Trick: Board holds game state, Player holds info, Game controls flow [OK]
Common Mistakes:
MISTAKES
  • Confusing Player with Board for state storage
  • Thinking Game class stores board state
  • Assuming Score class manages board

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes