<?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: Galopin</title>
    <description>The latest articles on DEV Community by Galopin (@shizukise).</description>
    <link>https://dev.to/shizukise</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%2F1105929%2F11f11b56-459a-4b31-9cb2-17ecd987fd3c.jpeg</url>
      <title>DEV Community: Galopin</title>
      <link>https://dev.to/shizukise</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shizukise"/>
    <language>en</language>
    <item>
      <title>My first python program c:</title>
      <dc:creator>Galopin</dc:creator>
      <pubDate>Wed, 21 Jun 2023 17:16:57 +0000</pubDate>
      <link>https://dev.to/shizukise/my-first-python-program-c-5g60</link>
      <guid>https://dev.to/shizukise/my-first-python-program-c-5g60</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---4WRhig8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/91bgsej0us0usbdq6zsg.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---4WRhig8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/91bgsej0us0usbdq6zsg.gif" alt="Image description" width="480" height="256"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I made this program for a course on codecademy. It was my first program using python (or any other language) and even tho it might be a simple one, i am very proud of it. Because i did not google for nothing apart from one or other syntax ;P and i got help from someone at the last commit, as i say in the commit comment.&lt;/p&gt;

&lt;p&gt;Here goes the github link:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/Shizukise/slot-machine-terminal-game"&gt;https://github.com/Shizukise/slot-machine-terminal-game&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The code itself is a simple one. I used the random module to get a list of 3 different numbers and after i made a function to translate those numbers to symbols. Symbols that were atached to the allowed numbers on a dictionary.(Being the symbol the key and the number the value.)&lt;br&gt;
then i made a class to hold a player name and balance that we take from inputs and to define a method to give a litle welcoming c:&lt;br&gt;
The biggest challenge was the game class itself and the for loop that came after. The class holds a player and its balance. And then the place bet method. this method takes the player balance.&lt;/p&gt;

&lt;p&gt;Lastly we make a for loop inside a while function to keep iterating while the count variable is higher than 0. this variable is taken from an input also.&lt;br&gt;
while this is true, we iterate trough the range from 0 to count and for each iteration we call the play and slotrow variables that hold the random function and we call the place bet method. The place method takes the amout being bet and if the balance is enough the bet will be made returning 2 times the value of the bet in case of 3 equal symbols, 1.5 times the value of the bet in case of 2 equal symbols, and taking the bet ammount from the player balance in case of 3 different symbols.&lt;/p&gt;

&lt;p&gt;It could be prettier in the terminal but apart from that i am really happy from this and looking forward to keep learning :D&lt;/p&gt;

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