Added Card class

This commit is contained in:
2026-01-29 11:17:25 -05:00
parent 6aabddf12e
commit 92e948ec04

View File

@@ -0,0 +1,14 @@
class Card:
def __init__(self, suit: str, value: str):
self._suit = suit
self._value = value
def get_suit(self) -> str:
return self._suit
def get_value(self) -> str:
return self._value
def __repr__(self) -> str:
return f"{self._value} of {self._suit}"