<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Code by ĥăẁŋĥọ Ýôų</title>
      <link>https://padlet.com/yhhyhh0128/ao6u3r66fcwihzpe</link>
      <description>C &amp; Py</description>
      <language>en-us</language>
      <pubDate>2025-04-13 07:29:29 UTC</pubDate>
      <lastBuildDate>2026-08-07 08:40:47 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url>https://padlet.net/icons/8.0/png/1f5a5.png</url>
      </image>
      <item>
         <title>Test1</title>
         <author>yhhyhh0128</author>
         <link>https://padlet.com/yhhyhh0128/ao6u3r66fcwihzpe/wish/3407514064</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2025-04-13 07:32:38 UTC</pubDate>
         <guid>https://padlet.com/yhhyhh0128/ao6u3r66fcwihzpe/wish/3407514064</guid>
      </item>
      <item>
         <title>댓글다셈</title>
         <author>gamplam</author>
         <link>https://padlet.com/yhhyhh0128/ao6u3r66fcwihzpe/wish/3407530067</link>
         <description><![CDATA[<p>Ex)멋지다~인혁아~~~~~</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-04-13 08:14:00 UTC</pubDate>
         <guid>https://padlet.com/yhhyhh0128/ao6u3r66fcwihzpe/wish/3407530067</guid>
      </item>
      <item>
         <title>.</title>
         <author>gamplam</author>
         <link>https://padlet.com/yhhyhh0128/ao6u3r66fcwihzpe/wish/3408628123</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2025-04-14 06:42:01 UTC</pubDate>
         <guid>https://padlet.com/yhhyhh0128/ao6u3r66fcwihzpe/wish/3408628123</guid>
      </item>
      <item>
         <title>랜덤 함수</title>
         <author>yhhyhh0128</author>
         <link>https://padlet.com/yhhyhh0128/ao6u3r66fcwihzpe/wish/3408850311</link>
         <description><![CDATA[<p>import random  # 랜덤 모듈 불러오기</p><p><br></p><p># 1부터 10 사이의 정수 중 하나 뽑기</p><p>num = random.randint(1, 10)</p><p>print(num)</p><p><br></p><p># 0 이상 1 미만의 소수 뽑기</p><p>f = random.random()</p><p>print(f)</p><p><br></p><p># 리스트에서 랜덤으로 하나 선택</p><p>items = ['사과', '바나나', '딸기']</p><p>choice = random.choice(items)</p><p>print(choice)</p><p><br></p><p># 리스트 섞기 (순서 랜덤)</p><p>random.shuffle(items)</p><p>print(items)</p><p><br></p><p># 리스트에서 랜덤으로 여러 개 뽑기</p><p>sample = random.sample(items, 2)</p><p>print(sample)</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-04-14 10:06:01 UTC</pubDate>
         <guid>https://padlet.com/yhhyhh0128/ao6u3r66fcwihzpe/wish/3408850311</guid>
      </item>
      <item>
         <title>홀덤 게임</title>
         <author>gamplam</author>
         <link>https://padlet.com/yhhyhh0128/ao6u3r66fcwihzpe/wish/3408868368</link>
         <description><![CDATA[<p>import random</p><p>from collections import Counter</p><p>from itertools import combinations</p><p># 카드 클래스</p><p>class 카드:</p><p>    def <strong>init</strong>(self, 숫자, 무늬):</p><p>        self.숫자 = 숫자</p><p>        self.무늬 = 무늬</p><p>    def <strong>repr</strong>(self):</p><p>        return f"{self.숫자}{self.무늬}"</p><p># 숫자 우선순위 정의</p><p>숫자_우선순위 = {'2':2, '3':3, '4':4, '5':5, '6':6, '7':7, '8':8,</p><p>               '9':9, '10':10, 'J':11, 'Q':12, 'K':13, 'A':14}</p><p># 덱 클래스</p><p>class 덱:</p><p>    def <strong>init</strong>(self):</p><p>        무늬들 = ['♠', '♥', '♦', '♣']</p><p>        숫자들 = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K', 'A']</p><p>        self.카드들 = [카드(숫자, 무늬) for 무늬 in 무늬들 for 숫자 in 숫자들]</p><p>        self.섞기()</p><p>    def 섞기(self):</p><p>        random.shuffle(self.카드들)</p><p>    def 나눠주기(self, 개수):</p><p>        나눔 = self.카드들[:개수]</p><p>        self.카드들 = self.카드들[개수:]</p><p>        return 나눔</p><p># 플레이어 클래스</p><p>class 플레이어:</p><p>    def <strong>init</strong>(self, 이름):</p><p>        self.이름 = 이름</p><p>        self.손패 = []</p><p>    def 카드받기(self, 카드들):</p><p>        self.손패 = 카드들</p><p>    def <strong>repr</strong>(self):</p><p>        return f"{self.이름}: {self.손패}"</p><p># 간단한 핸드 평가기</p><p>def 평가핸드(카드7장):</p><p>    숫자들 = [카드.숫자 for 카드 in 카드7장]</p><p>    숫자카운트 = Counter(숫자들)</p><p>    most_common = 숫자카운트.most_common()</p><p>    if most_common[0][1] == 3:</p><p>        return (3, 숫자_우선순위[most_common[0][0]])  # 트리플</p><p>    elif most_common[0][1] == 2:</p><p>        if len([x for x in most_common if x[1] == 2]) &gt;= 2:</p><p>            top_two = [x for x in most_common if x[1] == 2][:2]</p><p>            return (2, max(숫자_우선순위[top_two[0][0]], 숫자_우선순위[top_two[1][0]]))  # 투페어</p><p>        return (1, 숫자_우선순위[most_common[0][0]])  # 원페어</p><p>    else:</p><p>        high = max([숫자_우선순위[카드.숫자] for 카드 in 카드7장])</p><p>        return (0, high)  # 하이카드</p><p># 게임 클래스</p><p>class 홀덤게임:</p><p>    def <strong>init</strong>(self, 플레이어이름들):</p><p>        self.덱 = 덱()</p><p>        self.플레이어들 = [플레이어(이름) for 이름 in 플레이어이름들]</p><p>        self.공용카드 = []</p><p>    def 시작카드_나눔(self):</p><p>        for 플레이어 in self.플레이어들:</p><p>            플레이어.카드받기(self.덱.나눠주기(2))</p><p>    def 플랍(self):</p><p>        self.덱.나눠주기(1)  # 번 카드</p><p>        self.공용카드 += self.덱.나눠주기(3)</p><p>    def 턴(self):</p><p>        self.덱.나눠주기(1)</p><p>        self.공용카드 += self.덱.나눠주기(1)</p><p>    def 리버(self):</p><p>        self.덱.나눠주기(1)</p><p>        self.공용카드 += self.덱.나눠주기(1)</p><p>    def 상태출력(self):</p><p>        print("\n--- 현재 게임 상태 ---")</p><p>        for 플레이어 in self.플레이어들:</p><p>            print(플레이어)</p><p>        print(f"공용 카드: {self.공용카드}\n")</p><p>    def 승자판별(self):</p><p>        점수표 = []</p><p>        for 플레이어 in self.플레이어들:</p><p>            전체카드 = 플레이어.손패 + self.공용카드</p><p>            점수 = 평가핸드(전체카드)</p><p>            점수표.append((점수, 플레이어))</p><p>        점수표.sort(reverse=True)</p><p>        승자 = 점수표[0][1]</p><p>        print(f"\n&gt;&gt;&gt; 승자: {승자.이름} (핸드 레벨: {점수표[0][0][0]}, 하이카드: {점수표[0][0][1]})")</p><p>    def 게임진행(self):</p><p>        self.시작카드_나눔()</p><p>        self.상태출력()</p><p>        input("플랍 진행하려면 Enter...")</p><p>        self.플랍()</p><p>        self.상태출력()</p><p>        input("턴 진행하려면 Enter...")</p><p>        self.턴()</p><p>        self.상태출력()</p><p>        input("리버 진행하려면 Enter...")</p><p>        self.리버()</p><p>        self.상태출력()</p><p>        self.승자판별()</p><p># 실행</p><p>if <strong>name</strong> == "__main__":</p><p>    게임 = 홀덤게임(["철수", "영희"])</p><p>    게임.게임진행()</p><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2025-04-14 10:27:55 UTC</pubDate>
         <guid>https://padlet.com/yhhyhh0128/ao6u3r66fcwihzpe/wish/3408868368</guid>
      </item>
      <item>
         <title>Cmd</title>
         <author>yhhyhh0128</author>
         <link>https://padlet.com/yhhyhh0128/ao6u3r66fcwihzpe/wish/3417658436</link>
         <description><![CDATA[<p>color a</p><p>cls</p><p>systeminfo</p><p>dir /s</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-04-21 13:18:56 UTC</pubDate>
         <guid>https://padlet.com/yhhyhh0128/ao6u3r66fcwihzpe/wish/3417658436</guid>
      </item>
      <item>
         <title>cmd</title>
         <author>gamplam</author>
         <link>https://padlet.com/yhhyhh0128/ao6u3r66fcwihzpe/wish/3492289496</link>
         <description><![CDATA[<p>color a</p><p>cd..</p><p>cd..</p><p>cd..</p><p>tree</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-06-17 00:18:08 UTC</pubDate>
         <guid>https://padlet.com/yhhyhh0128/ao6u3r66fcwihzpe/wish/3492289496</guid>
      </item>
      <item>
         <title></title>
         <author>yhhyhh0128</author>
         <link>https://padlet.com/yhhyhh0128/ao6u3r66fcwihzpe/wish/3540890045</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads-usc1.storage.googleapis.com/3686189298/5404bb4c40d688ab929e03dc60e37b3d/0812_1_.mp4" />
         <pubDate>2025-08-12 01:41:25 UTC</pubDate>
         <guid>https://padlet.com/yhhyhh0128/ao6u3r66fcwihzpe/wish/3540890045</guid>
      </item>
      <item>
         <title>심심하다.</title>
         <author>gamplam</author>
         <link>https://padlet.com/yhhyhh0128/ao6u3r66fcwihzpe/wish/4000623002</link>
         <description><![CDATA[<p>만약 이걸 본다면 댓글 추가 해라.</p>]]></description>
         <enclosure url="" />
         <pubDate>2026-08-06 16:37:45 UTC</pubDate>
         <guid>https://padlet.com/yhhyhh0128/ao6u3r66fcwihzpe/wish/4000623002</guid>
      </item>
   </channel>
</rss>
