🧠 How I Built a Sudoku Game Using Amazon Q CLI — With Just Prompts!

What happens when you mix a strong idea with a smart AI CLI?
You get a fully working game — without writing a single line of code yourself.

Here's how I, Kavya Trivedi, built a complete Sudoku game using Amazon Q CLI, step by step.

🚀 Quick Links

🎥 Watch the Game in Action
📦 View the Source Code on GitHub
📲 See the LinkedIn Carousel Post

💡 Why I Built This

As a developer passionate about trying emerging tools, I, Kavya Trivedi, recently explored Amazon Q CLI, a GenAI-powered CLI by AWS that helps developers build applications with natural language.

I was curious:

  • Could I actually build something real — like a game — just by describing it?

  • Could GenAI handle logic, UI, and interactivity?

So I put it to the test.
The result? A complete Sudoku game — no manual coding required.

⚙️ Setup Phase — The Toughest Part

Getting started with Amazon Q CLI wasn’t easy. I spent nearly 2 hours setting things up — here's what I did:

  1. Signed up for an AWS Builder ID

  2. Installed Amazon Q CLI via WSL (Windows Subsystem for Linux)

  3. Enabled virtualization from BIOS settings

  4. Launched q chat — and the real fun began

📸 Screenshots:
-Installation:-
-Enabled virtualization from BIOS settings:-
-Then the WSL Launch and setup of Amazon Q CLI
I was Trying Ctrl + C and Ctrl + V the Commands But I figureOut that its Ctrl + C and Right click

 ✍️ Crafting the Perfect Prompt

- Once everything was ready, I wrote a precise prompt in q chat describing the Sudoku game I wanted
" Generate a complete Python script for a Sudoku puzzle game using PyGame.
Include:
- A 9x9 grid
- Keyboard input support (1–9, backspace)
- Real-time validation (green/red)
- Auto-solve and reset buttons "

Amazon Q CLI delivered — clean, working Python code with all the features.
✅ It even explained how everything worked.
As a developer, this felt magical.

🧩 The Final Game – Just Like I Imagined

Built entirely from the prompt I provided, the game had:

  • 🟢 Green for valid entries

  • 🔴 Red for invalid entries

  • 🎯 Auto-solve feature using backtracking

  • 🔁 Reset button

  • 🖥️ A clean UI powered by PyGame

📸 Game Screenshots: 
                                                    start

                                                                    Invalid number
Valid number

Reset

                    Note that Next level will only work when You complete This Easy Level 
🎥 Watch the game in action:
👉 Click to Watch Video

📦 Code + Download

🔗 GitHub Repository (by Kavya Trivedi):

➡️ View the Source Code

📌 What I Learned

As Kavya Trivedi, this was one of the most insightful AI-dev experiences I've had:

  • Setup can be tough, but rewarding

  • GenAI works best with detailed prompts

  • Tools like Amazon Q CLI can turn ideas into reality — fast

🧠 Final Thoughts

This was more than a dev experiment — it was a shift in how I see building software.

With the right tools and mindset, developers can do more by coding less.
Whether you’re new or experienced, tools like Amazon Q CLI open new doors for creativity and speed.

🤝 Let’s Connect

📲 Check out my LinkedIn carousel post
💼 Connect with me: linkedin.com/in/trivedikavya
📧 Email: kavyatrivedi931@gmail.com

Thanks for reading!
Kavya Trivedi







 



Comments