From 90f878e9617c00947339ae664ad9ec06150a7c08 Mon Sep 17 00:00:00 2001 From: Benjamin Adovasio Date: Tue, 10 Feb 2026 18:49:34 -0500 Subject: [PATCH] added comments to Card.py --- Project 1/Card.py | 4 ++-- Project 1/utilities.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) 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