DEV Community

Cover image for Codecademy CS Python Portfolio Project.
Conrad Krantz
Conrad Krantz

Posted on

Codecademy CS Python Portfolio Project.

Github

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

AWS Security LIVE! Stream

Stream AWS Security LIVE!

The best security feels invisible. Learn how solutions from AWS and AWS Partners make it a reality on Security LIVE!

Learn More

Top comments (0)

Jetbrains image

Build Secure, Ship Fast

Discover best practices to secure CI/CD without slowing down your pipeline.

Read more

👋 Kindness is contagious

If this post resonated with you, feel free to hit ❤️ or leave a quick comment to share your thoughts!

Okay