From 09050b71654919fb763ae3737452c0243119883b Mon Sep 17 00:00:00 2001 From: Niken Date: Tue, 5 May 2026 15:41:31 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=87=D0=B0=D0=BB=D0=BE=20=D1=81?= =?UTF-8?q?=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8=D1=8F=20=D1=8F=D0=B4=D1=80?= =?UTF-8?q?=D0=B0=20=D0=B2=D0=B5=D1=80=D1=81=D0=B8=D1=8F=200.0.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/__pycache__/card_info.cpython-314.pyc | Bin 0 -> 728 bytes core/__pycache__/player.cpython-314.pyc | Bin 0 -> 1687 bytes core/card_info.py | 14 ++++++ core/core.py | 51 +++++++++++++++++++++ core/player.py | 14 ++++++ 5 files changed, 79 insertions(+) create mode 100644 core/__pycache__/card_info.cpython-314.pyc create mode 100644 core/__pycache__/player.cpython-314.pyc create mode 100644 core/card_info.py create mode 100644 core/core.py create mode 100644 core/player.py diff --git a/core/__pycache__/card_info.cpython-314.pyc b/core/__pycache__/card_info.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b6a64f7817477f47d83fde486b6c901f423b272a GIT binary patch literal 728 zcmZ`%O>fgc5Z$$%?~fL#X#o-1s1j0yNchMRRjLXqIS{06Io7MKy-f^`9d;*F;p7v) z1^!JA9IO>c6`Z(L!e5^v4`<{o;PoHM{~DcDdz2a7nnsGa+6cpIyd&wzO$lhRu$vd^jtE%r1` z&u^MHC3cEVq;FJDpNX+{b^`$l^Wl0m06?oED#dHAmUN1)Agg{eRA9%9MXe*^5jSr zbU!*|6IB`o!x3a~GrJ>|6Yd2pGB z>hK<2G&Yk#T3<^J)AegfKW*NgJ2%sv*4$~P)lTwMZ9GVxr`PX%D9^VZeR4L$tt*p( z9(U!>N^mKR>#~Qr;ZoStNEIJ12fin^HPzdRqyd*U#`p_rUEuOhtB8A-NQZ@utjZ5V GGlSo>qtNL9 literal 0 HcmV?d00001 diff --git a/core/__pycache__/player.cpython-314.pyc b/core/__pycache__/player.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2cac159bb4db6ee7468661d8f7468f830eaffa51 GIT binary patch literal 1687 zcmbtUJ8u&~5T3m|UoOGH4j~ERVTS}P3{osa3W^AUgrGnQ;Q%*0R>%1Qhc0Kcy9QC= z0twQP7CI>N5BM3-Ky*}yiVmajDD;soo52l^n1!n8_jXX9twHxHPCVRq4HR=h8P^SEPC^s+ zPl2-PaE!Ue6hw||qAjYNMl6lwG-7MS*2s`XhFnKEbx_0ZFy1?o*h`UjKM+1L?>D;N z1aP`LanOM|s6*UebYT|O+2T4&Ms9g`1MYjGA#rBOAX=7mOeHy7yDS4CYb%~#YsXFU zQM@IZw*z0*{H6$MEq&`;>we;J9>$^KJSn79=6V2906DBFZ0z3q*m_dv5(`bWN0$U9 zzwQAv3#@}wuN%i70yGfa3m4ce=CX_I3d-!7HImx;NZ}+Fy zmz!e6Q^_dje&k8n2z}%xY0peYP^ObS=UyB)m8Sw^J>F+M0Bv-Wd(eFAz$UQV!Ovu# zUHnAd^GkXrMseNmr5eXN4lVlvPAHNkLVs&Z6zy-V&gL^c%2-~rAadxiZipf565DIF zg1AvN1W751Xmm7{N*axGGf+B-ef@iYjv_6A4JW@=SS`GDO0S*LQ}xCo1 z#7qmCzP_ym&Eygkt#Ht!HJpkwd^Zg4rRo&3JogbzCXX9Buu&Lad$9W8l~Wp!_#au4 zoPJeeAD;eiRfxkt6(d*q3}{}Q*4>|FW}&-QWl?jlvm%@+0kn**_1UuEj6uPjo2I;! z28Abf;ki{aEw@=5CoGgywUx?rs_J&Cu;oz5tnel>X@7-vSV#=@eK$7w_|!(exORT^ z{M-D@>-@~~qi^yDyC&?I(gEu1E#h~Eze((^(7PPre5KiFM>NJ4d#CM1*-C+@mq%e7 z;OE4}HoQbojfiP76*S2NK6-rNq0c>~M0lgE0*NP${q!yPK@@RbWof}uzEA4-1O=-N zJqdXT&9_Gw#TSF+_HEku1?Yc(Mr9h6H*L( None: + shuffle(self.cards) + + def get_cards(self) -> str: + return self.cards.pop() + + def get_starting_hand(self) -> list: + cards = [] + for i in range(self.info_card.STARTING_CARDS): + cards.append(self.cards.pop()) + return cards + + def first_card(self) -> str: + self.end_card = self.cards.pop() + return self.end_card + + + +if __name__ == "__main__": + cards = Core() + cards.randomize() + print(cards.first_card(), end="--\n\t") + Misha = Player() + Misha.get_first_card(cards.get_starting_hand()) + for i in Misha.view_card(): + print(i) + + \ No newline at end of file diff --git a/core/player.py b/core/player.py new file mode 100644 index 0000000..c26e8ae --- /dev/null +++ b/core/player.py @@ -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) \ No newline at end of file