hard

Design a Multi-player Card Game Framework

Design a reusable framework for card games. Include card, deck, and hand abstractions, turn management, pluggable game rules for different card game variants, and round lifecycle management.

Suggested time: 45 minutes

Loading the workspace...

About this problem

A card game framework must support multiple game variants (Poker, Blackjack, Uno) through a single engine. The primary design challenge is separating the invariant game lifecycle from the variant-specific rules.

What your design needs to cover

  • Support Multiple Card Game Variants

  • Game Lifecycle Management

  • Turn Order Enforcement and Play Validation

  • Deck Operations

  • Round and Scoring

Key challenges the editorial covers

Learn from other designs

Related problems

Guides