I Built a Typing Speed Game Using Amazon Q CLI — Here’s How!

Introduction
I recently took part in the “Build Games with Amazon Q CLI” challenge by AWS. The goal was to use Amazon’s AI-powered coding assistant, Amazon Q CLI, to create a fun game — and share the experience to earn a cool T-shirt!
In this blog, I’ll share how I built a Typing Speed Test game using Amazon Q CLI, how it works, and what I learned along the way.
What is Amazon Q CLI?
Amazon Q CLI is an AI coding assistant that helps you write code by simply chatting with it. You can describe what you want, and it generates the code for you — making development faster and easier.
How I Built the Typing Speed Test Game
I started a chat session with Amazon Q CLI and gave it prompts to build a Python game with the Pygame library. Here’s what the game does:
Displays random English words one by one
Gives you 60 seconds to type as many words correctly as possible
Calculates your typing speed (Words Per Minute) and accuracy
Has a clean and simple interface with start, restart, and quit options
Amazon Q CLI generated the complete Python script, saving me tons of time and effort.
Running the Game
To run the game on your computer:
Make sure you have Python installed.
Install Pygame by running:
nginxCopyEditpip install pygame
Run the game script with:
nginxCopyEditpython typing_speed_test.py
Press SPACE to start playing.
Type the displayed words and press ENTER after each.
After 60 seconds, your WPM and accuracy will be shown.
Press SPACE to restart or ESC to quit.
What I Learned
How AI tools like Amazon Q CLI can accelerate coding projects.
Basic game development with Python and Pygame.
The power of giving natural language prompts to generate functional code.
Check Out the Code
I’ve uploaded the full code on my GitHub — feel free to check it out and try the game yourself!
[GitHub-Link]
Join the Challenge
Want to build your own game with Amazon Q CLI? Join the challenge here, share your project with the hashtag #AmazonQCLI, and get a chance to win an exclusive AWS T-shirt!
Subscribe to my newsletter
Read articles from Shubham Dwivedi directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Shubham Dwivedi
Shubham Dwivedi
I come from a frontend background (HTML, CSS, JS, React, Redux, Firebase), but my true passion lies in DevOps. I'm currently diving deep into tools like Linux, shell scripting, CI/CD, Docker, Kubernetes, and cloud platforms as I transition into DevOps engineering. Sharing my learnings, wins, and lessons along the way.