<?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: Dade321</title>
    <description>The latest articles on DEV Community by Dade321 (@dade321).</description>
    <link>https://dev.to/dade321</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%2F1032609%2F4a6a8881-bf85-4a21-8f6e-6183bfb0a11a.png</url>
      <title>DEV Community: Dade321</title>
      <link>https://dev.to/dade321</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dade321"/>
    <language>en</language>
    <item>
      <title>Codecademy CS101. Python terminal game. A gun shop.</title>
      <dc:creator>Dade321</dc:creator>
      <pubDate>Thu, 23 Feb 2023 20:16:57 +0000</pubDate>
      <link>https://dev.to/dade321/codecademy-cs101-python-terminal-game-a-gun-shop-3goh</link>
      <guid>https://dev.to/dade321/codecademy-cs101-python-terminal-game-a-gun-shop-3goh</guid>
      <description>&lt;p&gt;&lt;a href="https://media.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%2Fox3rn85k1chd8g7ecuk9.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fox3rn85k1chd8g7ecuk9.gif" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hello there.&lt;/p&gt;

&lt;p&gt;I have written a simple python terminal game for a computer science course portfolio project. A game is about buying and selling weapons you stock up on merchandise and attempt to sell it to customers. &lt;/p&gt;

&lt;p&gt;The games code revolve around for &lt;code&gt;classes&lt;/code&gt;(&lt;code&gt;Store&lt;/code&gt;, &lt;code&gt;Supplier&lt;/code&gt;, &lt;code&gt;Customer&lt;/code&gt;and &lt;code&gt;Market&lt;/code&gt;) which interact with one another throughout a game by a main while loop.&lt;/p&gt;

&lt;p&gt;The gameplay follows this path:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A short intro sequence in which you name your store and stock up on merchandise.&lt;/li&gt;
&lt;li&gt;You open up store for a day and try to sell your stock( 3 customers per day).&lt;/li&gt;
&lt;li&gt;Each customer has his own randomized preferences and will state them.&lt;/li&gt;
&lt;li&gt;You can attempt to sell a chosen weapon. The success of sale depends on customers preference and the price you set&lt;/li&gt;
&lt;li&gt;After you close shop you restock and wait for another day.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here is a link to GitHub repository:&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/Dade321" rel="noopener noreferrer"&gt;
        Dade321
      &lt;/a&gt; / &lt;a href="https://github.com/Dade321/CS101-Terminal-game-Gun-shop" rel="noopener noreferrer"&gt;
        CS101-Terminal-game-Gun-shop
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Portfolio project for codecademy's computer science course.
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>python</category>
      <category>codecademy</category>
      <category>terminal</category>
      <category>gamedev</category>
    </item>
  </channel>
</rss>
