Poker Simulation
Medium · Coding
Model a 3-card poker game with Card, Player, and Game classes supporting round-robin dealing, hand ranking (three-of-a-kind > flush > pair > high card), exact event logging, and optional high-card discard.
This is a Pro problem. Pro unlocks the full prompt, a step-by-step walkthrough, a reference solution and tests you can run.
More OpenAI problems
- Infection Spread / Cellular Automata
- GPU Credits / GPU Credit 2
- Social Network / Follow Graph
- Classifier with Noisy Annotators
- Durable Key-Value Store Serialization
- NumPy Puzzle: 1-NN Vectorization → Wx+b Network
- Memory Allocator
- Transformer Bug Hunt
- Distributed Machine Cluster Count and Topology
- Autograd / Manual Backprop + Hillis-Steele Scan