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
Design a Snake Game (medium)
Design an Online Auction System (medium)
Design a Warehouse Management System (medium)
Design a Restaurant Order System (medium)
Design a Task Management System (medium)
Design an ATM (medium)