<?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: Aditya Kumar</title>
    <description>The latest articles on DEV Community by Aditya Kumar (@aditya_kumar_1ed587da5d8f).</description>
    <link>https://dev.to/aditya_kumar_1ed587da5d8f</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%2F3205761%2F6f9f1f5d-c3b5-4b47-9924-fc6cb643f71c.jpg</url>
      <title>DEV Community: Aditya Kumar</title>
      <link>https://dev.to/aditya_kumar_1ed587da5d8f</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aditya_kumar_1ed587da5d8f"/>
    <language>en</language>
    <item>
      <title>🧠 Building “Memory Maze” with Amazon Q CLI and Python — A Brain-Training Game with AI Power ⚡🎮</title>
      <dc:creator>Aditya Kumar</dc:creator>
      <pubDate>Sun, 25 May 2025 10:36:32 +0000</pubDate>
      <link>https://dev.to/aditya_kumar_1ed587da5d8f/building-memory-maze-with-amazon-q-cli-and-python-a-brain-training-game-with-ai-power-39d6</link>
      <guid>https://dev.to/aditya_kumar_1ed587da5d8f/building-memory-maze-with-amazon-q-cli-and-python-a-brain-training-game-with-ai-power-39d6</guid>
      <description>&lt;p&gt;⚡ By Aditya Kumar· #BuildOnAWS #AmazonQCLI #python #pygame #amazon_q_cli_challenge&lt;/p&gt;

&lt;p&gt;🚀 &lt;strong&gt;Introduction&lt;/strong&gt;&lt;br&gt;
I recently took part in the #BuildOnAWS challenge using Amazon Q CLI, a new generative AI assistant for developers by AWS. It helps you build real-world applications with just a few prompts — and it's amazing.&lt;/p&gt;

&lt;p&gt;Using one simple prompt, I created an addictive brain game called Memory Maze where you have to remember a disappearing path and follow it exactly. One wrong move, and you’re out.&lt;/p&gt;

&lt;p&gt;In this post, I’ll walk you through:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How I used Amazon Q CLI to generate the core logic&lt;/li&gt;
&lt;li&gt;How I enhanced the game with levels, sounds, score, and a timer&lt;/li&gt;
&lt;li&gt;What I learned by letting AI help me code&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;🎯 &lt;strong&gt;The Idea&lt;/strong&gt;&lt;br&gt;
I wanted to make something simple, visual, and mentally engaging. So I asked Amazon Q CLI:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;“Create a memory maze game using Python and Pygame. Show a path briefly, hide it, and make the player follow it. Add a timer, lives, and score.”&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Within seconds, I had working game logic.&lt;br&gt;
I then layered on more polish: difficulty scaling, sound effects, score tracking, and a better UI.&lt;/p&gt;

&lt;p&gt;🧠 &lt;strong&gt;Game Concept&lt;/strong&gt;&lt;br&gt;
Memory Maze challenges your short-term memory.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The game shows you a random path from (0,0) to (5,5)&lt;/li&gt;
&lt;li&gt;It disappears after a few seconds&lt;/li&gt;
&lt;li&gt;You must recall and follow it step-by-step&lt;/li&gt;
&lt;li&gt;If you make a wrong move or time runs out — you lose a life&lt;/li&gt;
&lt;li&gt;Survive long enough and the maze gets harder!&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It's like Simon Says + Mazes, with a race against the clock.⏱️🧩&lt;/p&gt;

&lt;p&gt;📸 &lt;strong&gt;Game Preview&lt;/strong&gt;&lt;br&gt;
The player navigates the shown path which reflects for 3-4 seconds and follow the path to win the game under the certain countdown!!&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%2Fj72l6b4625foqgxsfg92.jpg" 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%2Fj72l6b4625foqgxsfg92.jpg" alt="started"&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%2Fobmbvfc7dptlcda2nnrj.jpg" 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%2Fobmbvfc7dptlcda2nnrj.jpg" alt="path follow"&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%2Ftr78rov7l7615wutmwj9.jpg" 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%2Ftr78rov7l7615wutmwj9.jpg" alt="winning time"&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%2F0zj6ebslocl42z4j37tw.jpg" 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%2F0zj6ebslocl42z4j37tw.jpg" alt="Game over"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🧰 &lt;strong&gt;Tech Stack&lt;/strong&gt;&lt;br&gt;
Technology  Role&lt;br&gt;
Python 🐍 Game logic and structure&lt;br&gt;
Pygame 🎮 UI rendering, input, timer, and sound&lt;br&gt;
Amazon Q CLI    Code generation and assistance&lt;br&gt;
VS Code 💻    Coding and testing environment&lt;/p&gt;

&lt;p&gt;🧪&lt;strong&gt;Features&lt;/strong&gt;&lt;br&gt;
✅ Random path generation&lt;/p&gt;

&lt;p&gt;✅ Step-by-step memory gameplay&lt;/p&gt;

&lt;p&gt;✅ Countdown timer&lt;/p&gt;

&lt;p&gt;✅ Lives system (3 attempts)&lt;/p&gt;

&lt;p&gt;✅ Level progression (increased grid size and speed)&lt;/p&gt;

&lt;p&gt;✅ Sound effects on win/loss&lt;/p&gt;

&lt;p&gt;✅ High score saved across sessions&lt;/p&gt;

&lt;p&gt;🛠️ &lt;strong&gt;How Amazon Q CLI Helped&lt;/strong&gt;&lt;br&gt;
Here’s what blew my mind:&lt;/p&gt;

&lt;p&gt;I typed one prompt. Q CLI returned a working Python game loop, grid logic, and movement system.&lt;/p&gt;

&lt;p&gt;Then, I refined it by asking:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;“Add countdown timer”&lt;/li&gt;
&lt;li&gt;“Play sound on wrong move”&lt;/li&gt;
&lt;li&gt;“Track score and high score”&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And it kept improving the code with me — just like pair programming with an expert.&lt;/p&gt;

&lt;p&gt;Amazon Q CLI helped me:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Skip boilerplate code&lt;/li&gt;
&lt;li&gt;Focus on creativity&lt;/li&gt;
&lt;li&gt;Save time while learning faster&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;🏁 &lt;strong&gt;What I Learned&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Generative AI can turn ideas into working prototypes very quickly&lt;/li&gt;
&lt;li&gt;Q CLI isn't just for web apps or APIs — it's great for games and UI too&lt;/li&gt;
&lt;li&gt;Building with AI feels less like coding and more like designing with intent&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;🔗 &lt;strong&gt;Resources&lt;/strong&gt;&lt;br&gt;
💻 GitHub: (&lt;a href="https://github.com/TechAditya01/memory_maze_game" rel="noopener noreferrer"&gt;https://github.com/TechAditya01/memory_maze_game&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;🎽 Build on AWS Challenge: join the community (&lt;a href="https://aws.amazon.com/developer/community/community-builders/" rel="noopener noreferrer"&gt;https://aws.amazon.com/developer/community/community-builders/&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;✍️ This Dev.to post (drop a ❤️ if you liked it!)&lt;/p&gt;

&lt;p&gt;📖 My LinkedIn post: &lt;/p&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://www.linkedin.com/posts/aditya-kumar-46bb7524b_buildonaws-amazonabrqabrcli-memoryabrmaze-activity-7332354411165306880-1jXI?utm_source=share&amp;amp;amp%3Butm_medium=member_desktop&amp;amp;amp%3Brcm=ACoAAD3uT1MB8vDtllaQmt3j3Q1mv0vMesyhA3g" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdms.licdn.com%2Fplaylist%2Fvid%2Fv2%2FD4D05AQHloC2s6R6JTg%2Fthumbnail-with-play-button-overlay-high%2FB4DZcHBbn.G0Dc-%2F0%2F1748169513708%3Fe%3D2147483647%26v%3Dbeta%26t%3DXunoyVHbeJ6JWnvq0qiG2LHfeaMK1WyxeMLGCcvFtDM" height="auto" class="m-0"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://www.linkedin.com/posts/aditya-kumar-46bb7524b_buildonaws-amazonabrqabrcli-memoryabrmaze-activity-7332354411165306880-1jXI?utm_source=share&amp;amp;amp%3Butm_medium=member_desktop&amp;amp;amp%3Brcm=ACoAAD3uT1MB8vDtllaQmt3j3Q1mv0vMesyhA3g" rel="noopener noreferrer" class="c-link"&gt;
            "Memory Maze: A Brain-Teasing Game Built with Amazon Q CLI" | Aditya Kumar posted on the topic | LinkedIn
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            🧠 Built with Amazon Q CLI: Memory Maze – A Game of Focus and Recall 🎮🧩  
Thrilled to share my project for the #BuildOnAWS Challenge using #Amazon_Q_CLI, from AWS! 🤖⚡

I created #Memory_Maze, a brain-teasing grid game where players must remember and follow a hidden path to reach the goal without a single misstep.  
All generated and refined interactively through natural language prompts with Amazon Q CLI. 💬🔥

Introducing Memory Maze — a puzzle game that tests your memory and attention.

You get a quick glimpse of the correct path… and then it disappears. Can you remember it and reach the goal without a mistake?
All of this was built with just a simple prompt using Amazon Q CLI. Yes, AI generated the core logic — and I customized, extended, and refined it into a complete experience. 🔥🧩

🧰 Tech Stack:
Python 🐍
Pygame 🎮
Amazon Q CLI 🤖
VS Code 💻

📌 What I Did:
✅ Signed up with my AWS Builder ID
 ✅ Installed Amazon Q CLI &amp;amp; Pygame
 ✅ Prompted Q CLI:
“Create a memory maze game using Python and Pygame. Include score, timer, lives, and level progression.”
 ✅ Received a working game structure — instantly
 ✅ Customized it: added sounds, lives, high scores, timer, and level logic
 ✅ Recorded the gameplay and submitted it for the challenge! 🎯

🔗 GitHub (Source Code):
 👉 https://lnkd.in/dRAQdYTE
📖 Dev.to Article: https://lnkd.in/dM9gZkDX
 👉 https://lnkd.in/gxaWZmNs
🔗 AWS Challenge &amp;amp; Community:
 👉 https://lnkd.in/g4umEEah

🙌 Huge thanks to Shafraz Rahim and the #AWS team Amazon Web Services (AWS) for this awesome initiative — empowering developers to bring their creative ideas to life using the power of AI!

Also thanks for the latest update and info Lavish Sheth 🙌

🧠 If you’ve ever wanted to build something fun, smart, and playable with AI… now’s your moment.
Let AI handle the boilerplate — and you focus on the creativity.
#CodingReimagined.
#AmazonQ #AmazonQCLI #BuildOnAWS #AWSDeveloper #GenerativeAI #Python #Pygame #AWSQCLIChallenge
 #MemoryMaze #AIInGaming #GameDev #MachineLearning #Programming #ProjectShowcase #AWSCommunity #CodingJourney
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fstatic.licdn.com%2Faero-v1%2Fsc%2Fh%2Fal2o9zrvru7aqj8e1x2rzsrca"&gt;
          linkedin.com
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;🙏 &lt;strong&gt;Special Thanks&lt;/strong&gt;&lt;br&gt;
Big thanks to Shafraz Rahim for leading this challenge and for the amazing idea that inspired my project! 🌟&lt;/p&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://www.linkedin.com/posts/shafrazrahim_amazonqcli-activity-7330809059576598528-EAwT?utm_source=share&amp;amp;amp%3Butm_medium=member_android&amp;amp;amp%3Brcm=ACoAAELf9HABTLef7utc2UNaZH8FghfPVF6ALw4" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia.licdn.com%2Fdms%2Fimage%2Fv2%2FD5622AQGAxYYF6cL1UA%2Ffeedshare-shrink_800%2FB56ZbxD_RqH4Ao-%2F0%2F1747801078355%3Fe%3D2147483647%26v%3Dbeta%26t%3DwJy_bnMyfUJk2qS0gFPmzxqUEuiFl2mLuFV-_xcluZw" height="auto" class="m-0"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://www.linkedin.com/posts/shafrazrahim_amazonqcli-activity-7330809059576598528-EAwT?utm_source=share&amp;amp;amp%3Butm_medium=member_android&amp;amp;amp%3Brcm=ACoAAELf9HABTLef7utc2UNaZH8FghfPVF6ALw4" rel="noopener noreferrer" class="c-link"&gt;
            #amazonqcli | Shafraz Rahim
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            Build Games with #AmazonQCLI, let other developers know how you built it  by writing a blog / a video and redeem a cool T Shirt. Get started from here → https://s12d.com/BGWQCLI

Mouna Neelakanta | Shan-Hui Cathy Chu, PMP
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fstatic.licdn.com%2Faero-v1%2Fsc%2Fh%2Fal2o9zrvru7aqj8e1x2rzsrca"&gt;
          linkedin.com
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;🏷️ &lt;strong&gt;Tags&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;AmazonQCLI #BuildOnAWS #AWSCommunity #Python #Pygame #awsCommunity&lt;/p&gt;

</description>
      <category>aws</category>
      <category>awschallenge</category>
      <category>ubuntu</category>
      <category>pygame</category>
    </item>
  </channel>
</rss>
