Начало создания ядра версия 0.0.1
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
|
||||
class Player:
|
||||
def __init__(self):
|
||||
self.have_cards = []
|
||||
|
||||
def get_card(self, card: str) -> None:
|
||||
self.have_cards.append(card)
|
||||
|
||||
def view_card(self) -> list:
|
||||
return self.have_cards
|
||||
|
||||
def get_first_card(self, cards: list):
|
||||
for i in cards:
|
||||
self.have_cards.append(i)
|
||||
Reference in New Issue
Block a user