Начало создания ядра версия 0.0.1

This commit is contained in:
Niken
2026-05-05 15:41:31 +03:00
commit 09050b7165
5 changed files with 79 additions and 0 deletions
+14
View File
@@ -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)