<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Felix Alcantar</title>
    <description>The latest articles on DEV Community by Felix Alcantar (@elfolix).</description>
    <link>https://dev.to/elfolix</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3311152%2Fd1b19487-85f9-42b4-8143-4c8d6ecef115.png</url>
      <title>DEV Community: Felix Alcantar</title>
      <link>https://dev.to/elfolix</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/elfolix"/>
    <language>en</language>
    <item>
      <title>Blackjack in python terminal</title>
      <dc:creator>Felix Alcantar</dc:creator>
      <pubDate>Thu, 03 Jul 2025 08:37:36 +0000</pubDate>
      <link>https://dev.to/elfolix/blackjack-in-python-terminal-3k51</link>
      <guid>https://dev.to/elfolix/blackjack-in-python-terminal-3k51</guid>
      <description>&lt;p&gt;I did this little project because im doing the computer science career path in Codecademy&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5ylq3t9l7dumv6zz1p1n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5ylq3t9l7dumv6zz1p1n.png" alt="Image description" width="800" height="428"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How It Works&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The code is written in Python using OOP with different classes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Card:&lt;/strong&gt; represents each playing card.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deck:&lt;/strong&gt; builds and shuffles a standard 52 card deck.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hand:&lt;/strong&gt; tracks the cards held and calculates values (with ace adjustment logic).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Player:&lt;/strong&gt; manages drawing cards and showing hands.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BlackjackGame:&lt;/strong&gt; contains the game loop, decision logic, and winner checking.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Repository link: [&lt;a href="https://github.com/elfolix/Blackjack.git" rel="noopener noreferrer"&gt;https://github.com/elfolix/Blackjack.git&lt;/a&gt;]&lt;/p&gt;

&lt;p&gt;Thanks for reviewing my project and sorry if my english is not that good&lt;/p&gt;

</description>
      <category>python</category>
      <category>computerscience</category>
      <category>oop</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
