This weekend I'm having fun with Amazon Q CLI. Using Q CLI, created this game called Fruit Tetris (one of first ever games that I played eons ago on a flip-flop mobile probably running on Symbian Java).
It took me more time to install CLI itself than to create this awesome 2D game. Before we dive into the instructions, let's play the game. Use the up/down/arrow key to control, move and rotate the blocks.
Installing Amazon Q CLI
There are already great tutorials available for Linux and Windows, so I will not reiterate here. Make sure "Virtualization" is enabled in your computer (that is something you can look for in the boot menu settings) and just follow the instructions, it is easy peasy 🫛
How To Create The Game
Once Q CLI is installed and login is done, run "q chat" command (restart the terminal if "q" command is not recognized).
Give instructions for your favorite game that you want to create and it will be ready within minutes! Reiterate, add, and improve after that🚀
Here are the instructions that I gave:-
- I want to create a Tetris game where blocks are fruits, and when 3 fruits are accumulated, they are destroyed.
- Each block should be made of the same fruits. Also, blocks should be destroyed only when 6 fruits are the same.
- There is some bug... fruits are disappearing even if 6 are not touching each other. Even if the overall count is 6, fruits are being destroyed.
- Is it possible to support controls for Android?
You should also try it out, it is fun😃
Top comments (0)