Commit Graph

3 Commits

Author SHA1 Message Date
angelotr
d4f0f50c60 What I did for checkpoint 2 was I added docstrings descibing what each function does in yahtzee.py
For checkpoint 2, I have always found it easier to read and describe code rather than actually writing out the code. When writing out the code
I think to myself what the process is doing and how it is doing it. This normally takes the longest for me because it is easier to read what the code
does rather than write code for the procedure. When writing docstring for my code I always pretend to run a simulation in my mind and picture
what is happening which helps me read and understand the code. In future projects I will include writing docstrings because it helps me keep
track of what certain codes do and why it does what it does.
2025-11-11 22:43:53 -05:00
angelotr
e4ddb25850 What I did for checkpoint 1 was add two new methods, is_three_of_a_kind and is_four_of_a_kind in FiveDice.
A problem I can solve using classes is simulating a deck of cards for a card game. Each card could be an object with attributes like its suit
and its value. A separate class called Deck could hold all the cards, shuffle them, and deal them to players.
This setup would make it easier to model real game situations like Blackjack or Poker, since each player could also be a class with their own hand
of cards.
2025-11-11 20:23:56 -05:00
82beae5ce0 Initial commit 2025-09-01 02:29:28 +00:00