Back to problems

Design Card Game II

Object-Oriented Programming · Scale AI · Medium

You receive the main classes and enums for a conventional card game: Suit, Rank, Card, Deck, and Player. A card is uniquely determined by its suit and rank. The deck holds all 52 unique pairings of the suits ("CLUBS", "DIAMONDS", "HEARTS", and "SPADES") with the ranks ("A", "2",..., "10", "J", "Q", and "K"). Implement dealAndSortHands in the Game class. The method must perform these steps: Randomize the order of the deck. Distribute all 52 cards equally across four players,…

Checking your access…