<?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: m1chaelcodes</title>
    <description>The latest articles on DEV Community by m1chaelcodes (@m1chaelcodes).</description>
    <link>https://dev.to/m1chaelcodes</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%2F731819%2Fa6d47c1d-73d0-4a3a-96c1-3756f9768b9b.png</url>
      <title>DEV Community: m1chaelcodes</title>
      <link>https://dev.to/m1chaelcodes</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/m1chaelcodes"/>
    <language>en</language>
    <item>
      <title>That's Blackjack!</title>
      <dc:creator>m1chaelcodes</dc:creator>
      <pubDate>Thu, 21 Oct 2021 18:03:34 +0000</pubDate>
      <link>https://dev.to/m1chaelcodes/blackjack-in-terminal-25nh</link>
      <guid>https://dev.to/m1chaelcodes/blackjack-in-terminal-25nh</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gFY3GvwF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/12y6pprxfnh6xxv906bw.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gFY3GvwF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/12y6pprxfnh6xxv906bw.gif" alt="Python Blackjack program"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Background
&lt;/h1&gt;

&lt;p&gt;The final project of the CS101 course on &lt;a href="https://www.codecademy.com/"&gt;CodeCademy&lt;/a&gt; asks the student to write a terminal game in Python. For this project I have chosen to create a simple game of Blackjack.&lt;/p&gt;

&lt;h1&gt;
  
  
  Summary
&lt;/h1&gt;

&lt;p&gt;This is a very simple rendition of the classic casino banking game Blackjack.  The dealer deals 2 cards to the player and 2 to itself.  At the start of the round, the player can see both of their cards, but only 1 of the dealer's card.  The player then can ask for another card ("hit") or reject another card ("stay").&lt;br&gt;
The goal of the game is to hit 21 in the value of dealt cards. When this happens, the player has Blackjack.  If the player goes over 21, they lose the game.&lt;br&gt;
After the player's part is over, the dealer plays. The second of the dealer's cards is revealed at this point. If the total of the dealer's cards is less than 17, the dealer must "hit".  If the dealer goes over 17, they must "stay".  If the dealer hits Blackjack, the player loses.  If the dealer goes over 21, the player wins.&lt;br&gt;
At the end of the game, whoever has the highest card total wins.&lt;/p&gt;

&lt;h1&gt;
  
  
  Plans
&lt;/h1&gt;

&lt;p&gt;I intend to come back to this program and spruce it up once my coding skills are a little more developed. The next step would be to include a betting system which provides the user a bit of money and allows to place a bet on their hand while maintaining the value of their money, gains, and losses.&lt;br&gt;
I'd also like to set it up with ASCII art cards to represent the dealt hands, and make a bigger difference between the player's cards and the dealer's cards.&lt;/p&gt;

&lt;h1&gt;
  
  
  Source Code
&lt;/h1&gt;

&lt;p&gt;The full program can viewed on &lt;a href="https://github.com/m1chaelcodes/python_final/blob/main/blackjack.py"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>python</category>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
