Bird
0
0

You need to design a game system where the rule is: "Players can only hold a maximum of 3 weapons at a time." How would you enforce this in the system?

hard📝 Trade-off Q8 of 15
LLD - Design — Tic-Tac-Toe Game
You need to design a game system where the rule is: "Players can only hold a maximum of 3 weapons at a time." How would you enforce this in the system?
ALimit the player's weapon inventory to 3 and block adding more
BAllow unlimited weapons but slow down player speed
CAutomatically discard oldest weapon when adding a new one
DIgnore the rule and let players hold any number
Step-by-Step Solution
Solution:
  1. Step 1: Interpret the rule's limit

    The rule sets a hard maximum of 3 weapons per player.
  2. Step 2: Choose enforcement method

    Limiting inventory and blocking additions enforces the rule strictly.
  3. Final Answer:

    Limit the player's weapon inventory to 3 and block adding more -> Option A
  4. Quick Check:

    Rule limit = Block excess items [OK]
Quick Trick: Enforce max limits by blocking additions beyond the limit [OK]
Common Mistakes:
MISTAKES
  • Allowing unlimited weapons with penalties
  • Auto-discarding without player consent
  • Ignoring the rule completely

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes