Restore Project 1 to original state

This commit is contained in:
2026-02-10 19:31:23 -05:00
parent 61188d673f
commit 865821c330
2 changed files with 2 additions and 10 deletions

View File

@@ -19,13 +19,4 @@ class Card:
def __repr__(self) -> str:
return f"{self._value} of {self._suit}"
#Returns a string representation of the card in the format "Value of Suit".
def __add__(self, other) -> int:
#Adding 2 cards together
if isinstance(other, Card):
return self.value + other.value
elif isinstance(other, int):
#allows adding a card to an int
return self.value + other
#Added for project 2: Created an "__add__" meathod to allow adding Cards together.
#Returns a string representation of the card in the format "Value of Suit".