Loading interview...
The Yahtzee Engine
A hard Python mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.
- Domain
- Python
- Difficulty
- hard
- Seniority
- mid, senior
Interview Prompt
Implement a Yahtzee score calculator. Given five dice values, return a dictionary with the score for each of these categories: ones through sixes (sum of matching dice), three-of-a-kind (sum of all dice if 3+ match, else 0), four-of-a-kind (sum if 4+ match), full house (25 if 3+2 combo), small straight (30 if 4 consecutive values), large straight (40 if 5 consecutive), yahtzee (50 if all match), and chance (sum of all).
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write your python solution with real code execution
- Get instant feedback and a hire/no-hire decision