Jamie Chin
Competitive Yahtzee - Python Project
Portfolio For CS Education
Gameplay Highlights
Uses majority of topics covered in AP CS A
Game is a game of Yahtzee with limited scoring options and less turns
Goal is to get as high a score as possible
Game is competitive through the use of middle square seeding making every random number deterministic
Game records all played hands in preparation for data storage
Code Features
Usage of middle square seeding ensures each play is unpredictable
Showcase of case statements and iterables to calculate scoring with readability and compactness
Comprehensive and creative input validation showcased
OOP principles applied with use of die class by gamestate class.
More than covers basics of programming for teaching introductory data science and programming basics
Intentional Missing Functionality
Examples include file IO for storing high scores, storage of full games, and reading in full game as a replay feature
Game logic can be expanded to score large and small straights
Commenting Throughout
Comments placed to help reader understand code
Usage of OOP principles in class design
Link to Source Code
dicegame.py
main.py
Go to Homepage
Copyright 2025
JChinEducates@gmail.com