Codecademy CS Python Portfolio Project.
Conrad Krantz
Posted on December 24, 2023
INTRODUCTION:
This is a program which recreates one of my families favorite games, Yahtzee! The programming language I used was Python and the text editor I wrote my code files in was VS code. Every part of the game is included from being able to roll dice a total of 3 times to even having the possibility of bonus Yahtzees.
DESCRIPTION OF CODE:
A class Player object will hold all the scores that the player receives of the time that they play. The game is set in a for loop that can have extra turns added if a bonus Yahtzee occurs. In the loop is a series of functions that are used to minimize the lines of code required to accomplish the game by using these functions to allow the player to chosen when and what they want to score or if they would want to keep rolling. At the end of the game, a final function is called to print out a score sheet for the player to see their final score.
CONCLUSION:
This was a great project for learning how to manage my time coding and setting dead lines for me to get the project done. I also was able to combine logic with functions to write code that is readably and concise.
By: Conrad Krantz
Posted on December 24, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
November 30, 2024
November 30, 2024