Bird
0
0

Which component is essential in a move validation system to verify if a move is legal?

easy🧠 Conceptual Q2 of 15
LLD - Design — Tic-Tac-Toe Game
Which component is essential in a move validation system to verify if a move is legal?
ADatabase to store user profiles
BUI component for displaying moves
CRule engine that checks move constraints
DLogging service for move history
Step-by-Step Solution
Solution:
  1. Step 1: Identify the role of components in move validation

    The rule engine is responsible for checking if a move meets the game rules.
  2. Step 2: Match components to validation needs

    Only the rule engine directly verifies move legality; others support unrelated functions.
  3. Final Answer:

    Rule engine that checks move constraints -> Option C
  4. Quick Check:

    Key validation component = Rule engine [OK]
Quick Trick: Rule engine enforces move legality [OK]
Common Mistakes:
MISTAKES
  • Confusing UI with validation logic
  • Assuming database checks move legality
  • Thinking logging validates moves

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes