generated from mwc/project_game
17 lines
328 B
Python
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
|
|
|