I am simply amazed by how well AWS Q CLI is operating.
Let me show you simple steps that I took to create 3 games in sequential commplexity and how easy they were to create via help for Q CLI.
I would divide the steps in 2 part.
- Installation Instructions
- Prompts
Installation Instructions.
Below Step 1-5 will help installing Q CLI
Step 5-6 are required for installation of the required python package.
On a Linux Terminal -
- wget https://desktop-release.q.us-east-1.amazonaws.com/latest/amazon-q.deb For other OS instructions, check here
- sudo apt-get install -f
- sudo dpkg -i amazon-q.deb
- q login Select "Use for free with builder ID" option you will need to create a Builder ID via this link
- You will be given a link which will need to be opened in another browser where you have logged in with your builder id. This will approve the use of Q.
- python3 -m pip install -U pygame --user
- python3 -m pygame.examples.aliens
Prompts
Now comes the wow moment. Type in your thoughts in a normal prompt and the code is auto generated and ready to play. I am giving example of 3 prompts that I have used.
First one is a very simple prompt -
Second one is medium prompt -
Third one is very detailed and challenging one - Happy to say that the game turned out amazing. A Python file was generated, but also all supporting json files were generated. Simply Superb.
- q (Execute this on the linux kernel where above steps were executed).
- Prompt 1: Create a simple tic tac toe game to be played between 2 players
- Prompt 2: Create a visual game with state of the art graphics which will have a person standing and needs to dodge incoming boomerangs which he throws and they are coming back to him. At each level the number of boomerangs increase by 1 until the game finishes.
- Prompt 3: Create a puzzle game which will ask user to guess the country name based on some unique features of that country. The game should give higher points for guessing earlier in the number of hints that are given for the country and the faster that the person guesses it. You can keep it as multi choice option to select between 5 possible countries. Keep it as challenging as possible. The game can must support English, Gujarati and Hindi languages. It should be as colourful as possible and can also show country flags as option if possible in 2D format. Make it as interesting as possible.
Prompt Output for 3:
I've created a colorful and challenging country puzzle game with support for English, Hindi, and Gujarati languages. Let me explain the key features:
Country Puzzle Game Features
Multilingual Support:
β’ Full support for English, Hindi, and Gujarati
β’ All game text, country names, hints, and information are translatedColorful Interface:
β’ Uses the termcolor library for colorful text output
β’ Country flags displayed using emoji
β’ Visual formatting to make the game attractiveChallenging Gameplay:
β’ Players must guess countries based on increasingly revealing hints
β’ Multiple-choice format with 5 country options
β’ Points system rewards:
β’ Guessing with fewer hints (70% of score)
β’ Guessing quickly (30% of score)Game Structure:
β’ Main menu with options to play, change language, view score, or exit
β’ Round-based gameplay with detailed country information after each round
β’ Score tracking with total points and average time statisticsCountry Database:
β’ Includes 7 countries with unique hints and information
β’ Each country has 5 challenging hints in all three languages
β’ Country flags and basic information (capital, currency, languages)
How to Play
- Run the game: ./country_puzzle_game.py
- Select your preferred language from the menu
- In each round, you'll see 5 country options with their flags
- Read each hint carefully and make your guess
- The faster you guess with fewer hints, the higher your score
- After each round, you'll learn interesting facts about the correct country
Files Created
- country_puzzle_game.py - Main game script
- language_data_en.json - English language strings
- language_data_hi.json - Hindi language strings
- language_data_gu.json - Gujarati language strings
- country_data.json - Database of countries with hints and information
The game is ready to play! You can run it by executing ./country_puzzle_game.py in your terminal. The game will automatically load the necessary language and country data files.
Would you like me to explain any specific part of the implementation in more detail?
I am really happy and satisfied with the outputs and will continue to explore more on Q CLI.
Let me know your thoughts on this.
Top comments (0)