<?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>Forem: Sam Shelly</title>
    <description>The latest articles on Forem by Sam Shelly (@samzombie).</description>
    <link>https://forem.com/samzombie</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%2F1114317%2F45041e5f-dcbc-466a-a91b-09661eeb910c.jpeg</url>
      <title>Forem: Sam Shelly</title>
      <link>https://forem.com/samzombie</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/samzombie"/>
    <language>en</language>
    <item>
      <title>Python Terminal Game Recomendation</title>
      <dc:creator>Sam Shelly</dc:creator>
      <pubDate>Thu, 29 Feb 2024 02:38:05 +0000</pubDate>
      <link>https://forem.com/samzombie/python-terminal-game-recomendation-1b3j</link>
      <guid>https://forem.com/samzombie/python-terminal-game-recomendation-1b3j</guid>
      <description>&lt;p&gt;A little bit of background, I am currently taking a course through Code Academy learning how to code in Python and this is my second free-form project. My first project was making the game 2048 in the Python terminal, which I think you should check out, but that's not the point of this point. My challenge today was to create a program to recommend something based on user input. I picked game recommendations because of my interest in that area. One challenge I ran into in this project was logging data.&lt;/p&gt;

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

&lt;p&gt;I ended up adding 50 games across 10 categories. Other than that there was nothing complicated about this assignment. I choose to recommend players a new game based on a category or game they already like, as well as if they want a new, old, or random game. This involved light user input and sorting a list of games by the year they were made. If you want to check out the project here is the link!&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--A9-wwsHG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/SamZombie"&gt;
        SamZombie
      &lt;/a&gt; / &lt;a href="https://github.com/SamZombie/GameRecomendation"&gt;
        GameRecomendation
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      This program recomends you a game from a set of 50 based on your favorite genre or game from the list. Created for a coding challenge
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;p&gt;Launch gamereccode.py in the terminal&lt;/p&gt;
&lt;/div&gt;



&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/SamZombie/GameRecomendation"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


</description>
      <category>python</category>
      <category>beginners</category>
      <category>terminal</category>
    </item>
    <item>
      <title>Making 2048 From Scratch</title>
      <dc:creator>Sam Shelly</dc:creator>
      <pubDate>Thu, 06 Jul 2023 21:52:02 +0000</pubDate>
      <link>https://forem.com/samzombie/making-2048-from-scratch-1gpp</link>
      <guid>https://forem.com/samzombie/making-2048-from-scratch-1gpp</guid>
      <description>&lt;p&gt;A little bit of background, I am currently taking a course through Code Academy learning how to code in python and this is my first free form project. Armed with my limited coding knowledge and the task to create something I hatched a plan. Code Academy suggested remaking a game like Blackjack or Tic-Tac-Toe but I wanted to do something different. So I decided to make a game that I have played but never beaten, and what I landed on is 2048. The game is simple enough but even then I ran into a few challenges.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YmIfb48C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i4krzn4w56qiai5cdsos.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YmIfb48C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i4krzn4w56qiai5cdsos.PNG" alt="some gameplay" width="800" height="587"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The hardest part to code was pushing the all the numbers in every direction. To do this I programed pushing numbers to the left by appending all non zero numbers than adding zero to maintain 4 numbers in the list. To move to the right I reversed the list before I compacted then after to make it look normal. Movement up and down was a bit more complicated but I achieved this by creating a temporary list with the nth value in every list, pushing it left or right, then decoding it. Anyways here it is.&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--A9-wwsHG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/SamZombie"&gt;
        SamZombie
      &lt;/a&gt; / &lt;a href="https://github.com/SamZombie/Terminal-2048-python-project"&gt;
        Terminal-2048-python-project
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;h1&gt;
Terminal-2048-python-project&lt;/h1&gt;
&lt;p&gt;Code Academy Portfolio Project 1
This is a recreation of 2048 by Gabriele Cirulli for a coding challenge&lt;/p&gt;
&lt;/div&gt;



&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/SamZombie/Terminal-2048-python-project"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;p&gt;I had a lot of fun coding this and not only did I test my coding abilities but I learned about uploading to GitHub and blogging on this website!&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>python</category>
      <category>codecademy</category>
    </item>
  </channel>
</rss>
