Back to problems

Poker Simulation

Object-Oriented Programming · OpenAI · Medium

Simulate a simple three-card card game. Cards are handed out to the players one at a time in rotation until every player holds three cards. Report which cards each player ended up with and who wins. The task is split into parts that build on one another: Part 1. Suits are irrelevant. Hands are ranked three of a kind > pair > high card, and hands in the same category are then compared by card ranks. Part 2. Flushes are introduced. Hands are now ranked three of a kind > flush…

Loading the rest of the question…