Commit Graph

3 Commits

Author SHA1 Message Date
mbhatti4
0d3853c89f I added docstrings to the Yahtzee.py
When writing docstrings, I had to think deeper about what is happening at each line of the code and how it effects the final result.
Some methods had choices, so I had to run through how they made a choice.
When writing code, I have to also go bit by bit, but actually write out the code to make it work, rather than just "walking through it" when writing the docstrings.
Yes! I think it is helpful, especaily for longer codes. It can get a bit too much when there is a lot going on, so having doscstrings can help organize!
2025-11-11 14:59:09 -05:00
mbhatti4
f4b2d95e02 I edited dice_stats.py to add the additional trials
You can use Classes to simmulate many experiments. Just as we used it to roll dice, we could also simulate randomizer picking numbers to then do something with.
You could flip coins and then have outcomes such as "three heads in a row". You can also use it to simulate shuffle a deck of cards and have it simulate giving them out.
2025-11-11 14:46:14 -05:00
6c96e08130 Initial commit 2025-08-30 01:12:02 +00:00