erbrown
|
9d2a0ee0d2
|
While working with Yahtzee it was a overall game and everything was build on from one another. Each goal is its own class and knowns hwo to score. I like how I am able to create new classes like the ones for the game without having the change the whole code like other codes. Add the new classes did not change the game it just added to it. This is different with Unit 1 and 2 because if you are to add some code or change it it can alter the whole thing to be complete different.
|
2025-12-14 20:01:08 -05:00 |
|
erbrown
|
1259aa6fb9
|
My thinking was different as I was really thinking about what was happening from beginning to end. It was more of the process of a whole to my thinking. When I code I take one step at a time to really make sure I am returning the correct information. Yes I do think i will include docstrings or comments to help me understand what is happening along with going back to reference what I did if I forgot what I did.
|
2025-12-14 19:46:44 -05:00 |
|
erbrown
|
f6c2d344b7
|
An example could be playing cards. Each card is represented as a suit or value (1,2,3,4,...) and a deck is collection of cards. A player class can keep track of the cards and score. You could analyze or run the simulation multiple times to see which player wins the most or if a player is more likely to pick up a certain suit.
|
2025-12-14 19:13:43 -05:00 |
|
|
|
bcebaae18b
|
Initial commit
|
2025-08-31 23:51:00 +00:00 |
|