
English Learning Game with Pygame and Amazon Q
Learn how to build a fun English learning game using Pygame and integrate AI help with Amazon Q for Developers
Published May 23, 2025
With the advancement of GenAI in recent years, developing a game application is no longer too time-consuming. This week, I tried using the Amazon Q Developer CLI to help me build an english learning game quickly with Python. Honestly, I had no prior experience in game development, but with the power of the Amazon Q Developer CLI, it only took me 5 minutes to complete a game that is both creative and educational. And I have to say, it’s Magic!. Therefore, I really want to share a bit of my experience to spread this magic to everyone.
To start, you need to install Amazon Q for CLI.
· If you are using a macOS computer, refer to the Amazon Q CLI installation guide for macOS.
· If you are using Linux, follow the Amazon Q CLI installation guide for Linux.
· If you are using Windows, follow this link. Note: While there is no native Windows installation yet, you can install and run Amazon Q Developer CLI on your Windows machines using the Windows Subsystem for Linux, or WSL for short. You might already have wsl installed on your machine, in which case you can skip this step. If you do not, then Microsoft have put together a blog post that walks you through this process.
In addtion, you should install PyGame or some other gaming library.
After successfully installing the Amazon Q CLI, let's start building our English learning game by following these steps:
Register for a Builder ID if you don't already have one.
Logging into Amazon Q Developer using a Builder ID.
You will see two login method options, which you can navigate using the up and down arrow keys. Choose the first option, "Use for Free with Builder ID."
After selecting it, you’ll be prompted to open a URL in a web browser. Copy the URL and paste it into your browser. You’ll then need to either create a new Builder ID or log in with an existing one if you already have it.
Congratulations, you are now ready to go ahead!
Let's start building our game with Amazon Q CLI
After completing the process, you’ll be logged into Amazon Q Developer and can access it from WSL by running the command:

Refer to the following prompt to request Amazon Q CLI to build an English learning game:
Next, you will see Amazon Q start reasoning and writing code for the game.
After about 3 minutes, Amazon Q finished building the code for the English learning game as requested. I have uploaded this code file to a GitHub repository for you all to reference.
Let's play the game
Start the game by typing the command `python3` followed by the name of the built Python file.

The game interface has appeared, so let’s start playing and learning!

Select your favorite topic


Upgrade the game
Enhance our game further by adding more themes for greater variety using a prompt like this:
After Amazon Q has finished building, try restarting the game and experience it.

As you can see, building a game is no longer as difficult or time-consuming as before if we know how to leverage the magic of GenAI, specifically the Amazon Q Developer CLI. Now, give it a try and share with me and everyone the game you’ve built using Amazon Q Developer CLI.