medium

Design a Blackjack Game

Design a blackjack card game. Include deck and shoe management, player and dealer hand evaluation, hit/stand/bust/blackjack logic, and multi-player support at a single table.

Suggested time: 45 minutes

Loading the workspace...

About this problem

A blackjack game seems like shuffling cards and counting to 21. But underneath, the system must handle a multi-deck shoe with thread-safe draws, manage player state machines (waiting, playing, standing, busted, blackjack), implement the dealer's fixed strategy as a Template Method, and support multiple concurrent tables. Let's break this down.

What your design needs to cover

  • Card Dealing

  • Player Actions

  • Winner Determination

  • Dealer Fixed Strategy

Key challenges the editorial covers

Learn from other designs

Related problems

Guides