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
2025-09-01 02:29:28 +00:00
2025-09-01 02:29:28 +00:00
2025-09-01 02:29:28 +00:00
2025-09-01 02:29:28 +00:00
2025-09-01 02:29:28 +00:00
2025-09-01 02:29:28 +00:00
2025-09-01 02:29:28 +00:00
2025-09-01 02:29:28 +00:00
Description
No description provided
33 KiB
Languages
Python 100%