diff --git a/Project 1/Card.py b/Project 1/Card.py index 409d51a..3052a85 100644 --- a/Project 1/Card.py +++ b/Project 1/Card.py @@ -22,10 +22,10 @@ class Card: #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 - else: - return NotImplemented #Added for project 2: Created an "__add__" meathod to allow adding Cards together. diff --git a/Project 1/utilities.py b/Project 1/utilities.py index aa01c6d..fab3909 100644 --- a/Project 1/utilities.py +++ b/Project 1/utilities.py @@ -1,3 +1,6 @@ +""" +Reo +""" from __future__ import annotations from Card import Card