From 9fbfd295a428a28ec654d420f2af97f2a06e2500 Mon Sep 17 00:00:00 2001
From: Louis Chmielewski <louis.chmielewski@icloud.com>
Date: Wed, 27 Mar 2024 09:20:07 +0100
Subject: [PATCH] __repr__ class Card

---
 Tp08/card.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Tp08/card.py b/Tp08/card.py
index 94d1b1a..df725a8 100755
--- a/Tp08/card.py
+++ b/Tp08/card.py
@@ -67,11 +67,11 @@ class Card(object):
         """
         return a string representation of the card
     
-        $$$ Card('Ace', 'heart')
-        Card("Ace", "heart")
+        $$$ repr(Card('Ace', 'heart'))
+        'Card("Ace", "heart")'
         """
-        ...
-
+        return f"Card(\"{self.value}\", \"{self.color}\")"
+    
     def compare(self, card: Card) -> int:
         """
         compares cards.
-- 
GitLab