diff --git a/Project 1/Card.py b/Project 1/Card.py index 294d599..307c5af 100644 --- a/Project 1/Card.py +++ b/Project 1/Card.py @@ -1,14 +1,22 @@ class Card: + """ + Represents a playing card with a suit and value. + """ def __init__(self, suit: str, value: str): self._suit = suit self._value = value + #Creates a Card object with the specified suit and value. def get_suit(self) -> str: return self._suit + #Returns the suit of the card. + def get_value(self) -> str: return self._value + #Returns the value of the card. def __repr__(self) -> str: return f"{self._value} of {self._suit}" - \ No newline at end of file + + #Returns a string representation of the card in the format "Value of Suit". \ No newline at end of file diff --git a/Project 1/__pycache__/Deck.cpython-314.pyc b/Project 1/__pycache__/Deck.cpython-314.pyc index 6dda3e0..a094663 100644 Binary files a/Project 1/__pycache__/Deck.cpython-314.pyc and b/Project 1/__pycache__/Deck.cpython-314.pyc differ