๐Ÿš€ How to Get Started in Coding โ€” Real Quick!

Recently I discovered an exciting post from Amazon:

Build Games with Amazon Q CLI

What is Amazon Q CLI?

Itโ€™s a developer tool that helps you quickly scaffold, build, and test applications (like games!) using natural language prompts โ€” powered by AI.

As a tech educator, I thought: "How can I use this to complement education?" ๐Ÿค” One quick idea was to leverage this tool to rapidly generate interactive learning materials โ€” like games โ€” that I can use to teach both software development and ethical hacking at the same time.

I also wanted to challenge the AI โ€” not just in Python, but in C. Let's see how far it can go.

๐Ÿ’ป Setting Up

I'm on Ubuntu. I followed this official setup guide:

Install Amazon Q CLI (Ubuntu)
Note: This setup is more advanced โ€” not something Iโ€™d recommend for complete beginners.

๐ŸŽฎ Building a Game with C

I challenged Amazon Q to make a Flappy Bird clone โ€” but in C. Why C? Because Python is too easy, and I wanted to see if an AI could handle a low-level language with graphical output.

The prompt I gave was super simple:

Prompt to Amazon Q

"Write me a game in C that is like flappy bird"

Initially, this prompt didnโ€™t work. The AI gave a text-only version of the game. But once I added a simple follow-up โ€” "I want it to be graphical" โ€” it started pulling in graphical libraries and producing real output!

Amazon Q automatically pulled in the necessary dependencies like libsdl2-dev and scaffolded a working graphical prototype.

sudo apt update && sudo apt install -y libsdl2-dev libsdl2-ttf-dev
Flappy Bird Game

Simple bird + pipe overlay... and it runs!

Flappy Bird Pipe Screenshot

Game over :(

Scroll down below if you want to see a video of the game!

๐Ÿ› ๏ธ Takeaways

In the future, weโ€™ve got to be more precise and clear when talking to LLMs.

Giving AI tools clear, well-defined instructions isnโ€™t just a trick โ€” itโ€™s a real-world problem-solving skill. In fact, this is how we solve problems in reality too!

๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ง How This Helps Kids Learn to Code

One thing that really impressed me is how clearly AI tools like Amazon Q explain classic programming problems. When I asked it to handle collision detection โ€” one of the hardest parts in beginner game development โ€” it not only generated the logic, but explained it too!

For example, detecting when the bird hits a pipe isnโ€™t trivial. But Amazon Q broke it down using meaningful variable names and step-by-step reasoning. This makes it an excellent learning tool โ€” even for kids!

Prompt to Amazon Q about collision detection

Prompting Amazon Q to explain game logic like collision detection

// AI-generated collision check
if ((bird.x + bird.width > pipe.x) && 
    (bird.x < pipe.x + pipe.width) &&
    ((bird.y < pipe.gapY) || (bird.y + bird.height > pipe.gapY + GAP_HEIGHT))) {
    // Collision detected!
    gameOver = true;
}

This kind of output โ€” clean, well-named, and easy to read โ€” is exactly what we want beginners to see. It shows how to structure a solution and why it works. Looking at these examples and then trying to write your own is a great way to learn.

Tip for Parents: Sit with your child and explore these AI-generated examples together. Ask them to explain the logic back to you โ€” youโ€™ll be surprised how much they can pick up by example!

๐Ÿ“ฆ Making It Portable

For future teaching use, I wanted this game to run anywhere. So I asked Amazon Q to:

  • Cross-compile it for Windows
  • Wrap it in a Dockerfile

It delivered both!

Now, I can double-click the Windows executable โ€” no setup needed. And I have a Docker-based environment to recompile any time.

๐Ÿง  Final Thoughts

Iโ€™m genuinely impressed by how easy AI tools like Amazon Q make development.

With such low barriers, anyone can start building and learning โ€” fast.

At Hacker School, we want kids and adults to not just consume tech โ€” but create with it. Tech isnโ€™t just about building websites. Itโ€™s about solving real problems and having fun. For example:
  • โš™๏ธ Using code to help with school projects โ€” like making quizzes or science simulations
  • ๐Ÿ“Š Visualizing data from sensors, school experiments, or even your own spending habits
  • ๐Ÿ” Understanding cybersecurity and how to stay safe online

This experiment has already sparked ideas for more content and hands-on activities.

Stay tuned for the next blog where Iโ€™ll reverse engineer this game and crack it open ๐Ÿ”“๐Ÿ˜‰

๐Ÿ“ Final Output

Once everything was done, I packaged the entire project โ€” source code, compiled binaries, assets, and instructions โ€” into a portable zip archive. This makes it easy for anyone to download and try it out without needing to set up a development environment.

I also recorded a quick gameplay video so you can see what the final result looks like in action:

Gameplay demo โ€” itโ€™s simple, but satisfying!

Zipped project directory

A full build with binaries, source, and README included.