Files
project_game/card.py
jandrews 39695c2d92 updated
2026-01-13 12:57:09 -05:00

17 lines
328 B
Python

#module defines the value of the card. 1-13 display and value are defined outside of this class.
from random import randint
class Card:
def __init__(self):
self.deal()
def __str__(self):
return str(self.face)
def deal(self):
self.face = randint(1, 13)
return self.face