Design a Deck of Cards for Blackjack

Easy · Low-Level Design · about 40 minutes

Asked at Microsoft, Amazon, Google.

Design a generic deck of cards, then use it to build Blackjack: a dealer and up to 6 players, a shoe of one or more decks, hit and stand, aces worth 1 or 11, and the dealer drawing to 17. Report each player's result against the dealer.

Related guides