<?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: Amar</title>
    <description>The latest articles on DEV Community by Amar (@amarnathrao).</description>
    <link>https://dev.to/amarnathrao</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%2F945449%2Ff3c7a988-03f1-4eee-8340-62dd76348da4.png</url>
      <title>DEV Community: Amar</title>
      <link>https://dev.to/amarnathrao</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/amarnathrao"/>
    <language>en</language>
    <item>
      <title>Building a Classic Terminal Snake Game with Amazon Q CLI 🚀🐍</title>
      <dc:creator>Amar</dc:creator>
      <pubDate>Sun, 01 Jun 2025 10:03:46 +0000</pubDate>
      <link>https://dev.to/amarnathrao/building-a-classic-terminal-snake-game-with-amazon-q-cli-e39</link>
      <guid>https://dev.to/amarnathrao/building-a-classic-terminal-snake-game-with-amazon-q-cli-e39</guid>
      <description>&lt;p&gt;I recently built a classic &lt;strong&gt;Snake game&lt;/strong&gt; you can play right in your terminal — and I’m excited to share the journey with you!&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;Snake is one of the simplest yet most addictive games ever made. My version runs entirely in the terminal using Python’s &lt;code&gt;curses&lt;/code&gt; library for handling input and screen rendering. The result? A smooth, retro-style gameplay experience with arrow-key controls, growing snake length, and a fun challenge to avoid crashing.&lt;/p&gt;

&lt;p&gt;You can find the full source code here on GitHub:&lt;br&gt;
👉 &lt;a href="https://github.com/Amarnath-Rao/QCLI-Snake-Game" rel="noopener noreferrer"&gt;https://github.com/Amarnath-Rao/QCLI-Snake-Game&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Why a Terminal Game?
&lt;/h2&gt;

&lt;p&gt;While web and graphical games are popular, terminal games have their own charm — they’re lightweight, easy to run anywhere, and nostalgic for many developers. Plus, building one helps sharpen your skills in handling input/output, timers, and game logic without relying on heavy frameworks.&lt;/p&gt;




&lt;h2&gt;
  
  
  How I Built It — Powered by Amazon Q CLI
&lt;/h2&gt;

&lt;p&gt;I developed this game using &lt;strong&gt;Amazon Q CLI&lt;/strong&gt;, an AI-powered assistant that helps with writing, debugging, and iterating code straight from the terminal. It made scaffolding the game’s structure and handling tricky parts like collision detection much faster.&lt;/p&gt;

&lt;p&gt;If you haven’t tried Amazon Q CLI, it’s definitely worth checking out to boost your productivity!&lt;/p&gt;




&lt;h2&gt;
  
  
  How to Run It Yourself
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Clone the repo:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/Amarnath-Rao/QCLI-Snake-Game.git
&lt;span class="nb"&gt;cd &lt;/span&gt;QCLI-Snake-Game
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Run the game:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python3 snake_game.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Windows users:&lt;/strong&gt;&lt;br&gt;
Install &lt;code&gt;windows-curses&lt;/code&gt; first:&lt;/p&gt;


&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;windows-curses
&lt;/code&gt;&lt;/pre&gt;

&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Live Demo — Play It Online!
&lt;/h2&gt;

&lt;p&gt;Thanks to Gitpod’s cloud IDE, you can even play the game live in your browser, no setup required:&lt;br&gt;
👉 &lt;a href="https://amarnathrao-qclisnakega-pqoei3nva6v.ws-us120.gitpod.io" rel="noopener noreferrer"&gt;https://amarnathrao-qclisnakega-pqoei3nva6v.ws-us120.gitpod.io&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Screenshots
&lt;/h2&gt;

&lt;h4&gt;
  
  
  Gameplay:
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://github.com/user-attachments/assets/5e87a966-25c5-4b12-9f8a-a679f62d5337" rel="noopener noreferrer"&gt;Screencast from 2025-06-01 17-00-35.webm&lt;/a&gt;&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%2Ftrkaups6ronp9iia56j4.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%2Ftrkaups6ronp9iia56j4.png" alt="Screenshot from 2025-06-01 14-59-32" width="800" height="418"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Game from gitpod (&lt;em&gt;note: this is terminal based game&lt;/em&gt;)
&lt;/h4&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%2F9l3ocimnxj3p841lmumb.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%2F9l3ocimnxj3p841lmumb.png" alt="Screenshot from 2025-06-01 15-21-39" width="800" height="388"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Code:
&lt;/h4&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%2Flvs204j2r2yhvwz9x5hx.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%2Flvs204j2r2yhvwz9x5hx.png" alt="Screenshot from 2025-06-01 15-00-29" width="800" height="534"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Join the Conversation
&lt;/h2&gt;

&lt;p&gt;I shared a social media post about the game:&lt;br&gt;
&lt;a href="https://x.com/morphxos/status/1929112762929549389" rel="noopener noreferrer"&gt;Twitter / X post&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🚀 &lt;em&gt;“Just built a classic Snake game you can play right in your terminal! Check out the code and try the live version!”&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  What’s Next?
&lt;/h2&gt;

&lt;p&gt;I’m planning to enhance the game with new features like levels, high score tracking, and maybe a more polished UI. If you want to contribute or suggest ideas, feel free to open an issue or PR on GitHub!&lt;/p&gt;




&lt;p&gt;Thanks for reading! If you try out the game, let me know your high score. 🐍🎮&lt;/p&gt;




&lt;h2&gt;
  
  
  More screenshots:
&lt;/h2&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%2Fcpopov7mwchzr969c6ak.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%2Fcpopov7mwchzr969c6ak.png" alt="Image description" width="800" height="435"&gt;&lt;/a&gt;&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%2Fi52uky9lub9dq7fhdnw7.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%2Fi52uky9lub9dq7fhdnw7.png" alt="Image description" width="800" height="435"&gt;&lt;/a&gt;&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%2Fznm0o55ch6kgcl345var.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%2Fznm0o55ch6kgcl345var.png" alt="Image description" width="800" height="847"&gt;&lt;/a&gt;&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%2Fvxcw0j80w77814dksk9z.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%2Fvxcw0j80w77814dksk9z.png" alt="Image description" width="800" height="847"&gt;&lt;/a&gt;&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%2Fdnoeklmc2z3bks550d6x.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%2Fdnoeklmc2z3bks550d6x.png" alt="Image description" width="800" height="434"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Resources that helped me:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://community.aws/content/2xdDGlHMl1MnDCWIVc2HWtlZGJP/vibe-coding-a-game-using-the-amazon-q-developer-cli" rel="noopener noreferrer"&gt;https://community.aws/content/2xdDGlHMl1MnDCWIVc2HWtlZGJP/vibe-coding-a-game-using-the-amazon-q-developer-cli&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/aws/amazon-q-developer-cli?tab=readme-ov-file" rel="noopener noreferrer"&gt;https://github.com/aws/amazon-q-developer-cli?tab=readme-ov-file&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/094459/aqd-cli-workshop" rel="noopener noreferrer"&gt;https://github.com/094459/aqd-cli-workshop&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>amazonqcli</category>
      <category>aws</category>
      <category>ai</category>
      <category>gamedev</category>
    </item>
  </channel>
</rss>
