MCPcopy Index your code
hub / github.com/geekcomputers/Python / __init__

Method __init__

BlackJack_game/blackjack_simulate.py:47–55  ·  view source on GitHub ↗

:param suit: pattern in the card :param rank: point in the card :param face: show or cover the face(point & pattern on it)

(self, suit, rank, face=True)

Source from the content-addressed store, hash-verified

45 __slots__ = "suit", "rank", "is_face"
46
47 def __init__(self, suit, rank, face=True):
48 """
49 :param suit: pattern in the card
50 :param rank: point in the card
51 :param face: show or cover the face(point & pattern on it)
52 """
53 self.suit = suit
54 self.rank = rank
55 self.is_face = face
56
57 def __repr__(self):
58 fmt_card = "\t<rank: {rank:2}, suit: {suit:8}>"

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected