DEV Community

Cover image for Vibe coding a simple STEM Game with Amazon Q CLI
John NG for AWS Community Builders

Posted on

1

Vibe coding a simple STEM Game with Amazon Q CLI

Just recently saw this post and decided that it would be interesting to test out Amazon Q CLI capability by building a game, so here we go!

First, I started by finding a game idea. Well turns out my high school teacher friend has some students find understanding physic concepts difficult, like free body diagrams. So I created this game for her students to understand the concepts easier~

With the game idea in place, I then proceed to setup the development environment and get my hands dirty. For anyone interested, you can refer this guide to install Amazon Q CLI.

Basically Amazon Q CLI is like ChatGPT/Grok/DeepSeek but in the form of CLI, so it's quite easy to use as long as you are comfortable with CLI environment.

Image description

So with Amazon Q CLI ready, now is time for prompting! It's working better than I expected as it appears Q is using a reasoning model by default, though the response time could be quite long as a trade-off.

Therefore, after endless prompting and revising, i find the below tips that maybe usefull in facilitating effective prompting and reduce the back-and-forth between you and Q:

  • Define a prompting framework such that the Q know the context, the task, and the expected results
  • Ask Q to provide visual debugs can let the Q know how to fix issues more quickly
  • Ask Q to give a plan before coding, that way you know Q is thinking as you expected

With about 3 hours prompting and waiting, here's the final product!

Image description
game demo: https://fbd.cmpapp.top

GitHub: https://github.com/john-ng-hk/stem-fbd-game

That's all and thanks for reading, feel free to connect me on LinkedIn too~

Warp.dev image

The best coding agent. Backed by benchmarks.

Warp outperforms every other coding agent on the market, and gives you full control over which model you use. Get started now for free, or upgrade and unlock 2.5x AI credits on Warp's paid plans.

Download Warp

Top comments (0)

Best Practices for Running  Container WordPress on AWS (ECS, EFS, RDS, ELB) using CDK cover image

Best Practices for Running Container WordPress on AWS (ECS, EFS, RDS, ELB) using CDK

This post discusses the process of migrating a growing WordPress eShop business to AWS using AWS CDK for an easily scalable, high availability architecture. The detailed structure encompasses several pillars: Compute, Storage, Database, Cache, CDN, DNS, Security, and Backup.

Read full post

👋 Kindness is contagious

Explore this insightful write-up embraced by the inclusive DEV Community. Tech enthusiasts of all skill levels can contribute insights and expand our shared knowledge.

Spreading a simple "thank you" uplifts creators—let them know your thoughts in the discussion below!

At DEV, collaborative learning fuels growth and forges stronger connections. If this piece resonated with you, a brief note of thanks goes a long way.

Okay