DEV Community

John  Ajera
John Ajera

Posted on

Building a Kiwi-Themed Memory Game with Amazon Q CLI

I recently built a New Zealandโ€“themed memory matching game using the Amazon Q Developer CLI โ€” a new tool that helps developers generate code using natural language, right in the terminal.

This was part of my submission for the Build Games with Amazon Q CLI Challenge โ€” and yes, thereโ€™s a t-shirt involved. ๐Ÿ˜„

๐ŸŒฟ Why a Kiwi-Themed Game?

As someone currently living in Aotearoa New Zealand, I wanted to create something that reflects the local culture and wildlife. The idea of using familiar NZ symbols โ€” like the ๐Ÿฅ kiwi bird, ๐ŸŒฟ silver fern, ๐ŸŒ€ koru, and ๐Ÿค pลซkeko โ€” made the game not only fun but also meaningful to build.

It was also a perfect fit for a small offline browser game: simple logic, a welcoming tone, and room to apply accessibility and language features.

๐Ÿง  What I Built

๐Ÿง  Kiwi Memory Game โ€” a lightweight memory game playable in any browser.

  • Built with HTML, CSS, and JavaScript
  • Features:
    • Card flip animations and match logic
    • Web Audio APIโ€“powered sound feedback
    • Theme and language toggle (English + Te Reo Mฤori)
    • Accessible with keyboard and screen readers
    • Works completely offline
    • Deployed via GitHub Pages

๐Ÿ“ Code:
๐Ÿ‘‰ https://github.com/jajera/q-kiwi-memory-game

โš™๏ธ How I Used Q CLI

Amazon Q CLI lets you generate, test, and refine code interactively in your terminal. Here's what my workflow looked like:

  1. Logged in via q login using my Builder ID
  2. Ran q chat to open an interactive code session
  3. Pasted a detailed spec for the game โ€” including visual style, logic, accessibility, and sound
  4. Iterated multiple times to improve the UI, fix bugs, and add polish

๐Ÿ“„ Full specification โ€” The more specific your prompt, the better the results.

๐Ÿงช Lessons Learned

  • Q CLI is a powerful tool for generating and scaffolding ideas quickly
  • Clear, structured prompts yield far better results than vague ones
  • Itโ€™s a collaborative tool โ€” you still need to test, fix, and iterate
  • Small games like this are a great sandbox for accessibility and browser-based UX

๐ŸŽฎ Play the Game

๐Ÿ•น๏ธ Try the game here:
๐Ÿ‘‰ https://jajera.github.io/q-kiwi-memory-game/

Or explore the code:
๐Ÿ‘‰ https://github.com/jajera/q-kiwi-memory-game


If you're curious about Amazon Q CLI or just want to build something creative and fun โ€” join the challenge and start shipping ideas today.

Questions or feedback? Drop them in the comments!

Top comments (0)