I found this unit very useful but more difficult to understand, especially this specefic lab.

I understand the concepts of class, methods and instances, but the code themselves are hard to understnad.
If i wrote the codes like unit 1 or 2, they would include more fucntions and loops. That is what I am confortbale with.
OOP seems to super efficient and writing the codes as they are can be more organized, I do think I am at the level to write them as the Yahtzee game.
This commit is contained in:
mbhatti4
2025-11-11 15:10:17 -05:00
parent 0d3853c89f
commit 4f14c81123

View File

@@ -121,3 +121,6 @@ class Yahtzee:
if die.face in choice_ints: if die.face in choice_ints:
choice_ints.remove(die.face) choice_ints.remove(die.face)
return len(choice_ints) == 0 return len(choice_ints) == 0
"' I do not know the rules of this game to add more lol"