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.
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!
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~
Top comments (0)