βBhaiya Nokia waala Snake yaad hai na?β
βHaan wahi, jo sabse pehle phone mein khela tha!βBas wahi nostalgia lekar aaya hoon ek naye andaaz mein β AI aur Python ke tadke ke saath π₯
π― Kyun Banaya Snake Game? (Aur koi Candy Crush thodi hai bhai!)
Dekho, baat simple thi...
AI ka power mila toh socha β βKya kare jo maze bhi de, seekhne bhi mile, aur baccho ka dil bhi jeet le?β
Tab yaad aaya β Nokia 1100 wala Snake Game π
Jo kabhi mobile ki jaan tha, ab banega AI ke dum pe ek naya game!
Bas fir kya tha... Amazon Q CLI ko bola:
βBhai ek mast Snake game bana do Python mein, cartoon-style hona chahiye, baccho ke liyeβ
Aur Q CLI ne toh kamaal kar diya π₯
π§ Prompting ka Desi Jugaad
Amazon Q CLI se kaam karwane ke liye prompt ekdum chaat masala jaisa hai β sahi diya toh mazaa aa jaata hai π
Mera prompt tha:
Create a simple, kid-friendly Snake game using Python and Pygame.
β’ The snake moves using arrow keys (β β β β).
β’ The snake grows longer when it eats food.
β’ The game ends if the snake hits the wall or collides with itself.
β’ Display a score counter at the top in a large, playful font.
β’ Use cartoon-style colors and visuals suitable for ages 4β10.
β’ Food should appear as fun items like apples, candy, or stars.
β’ Set the window title to "Snake Fun Game" and use a cute snake icon if possible.
β’ Add fun sound effects for eating and game over.
β’ Show a game over screen with score and a "Play Again" option.
β’ Keep the code modular and beginner-friendly, with files like main.py, snake.py, and food.py.
β’ Include comments and clean structure for learning purposes.
π§ Tips:
-
Clear bolna:
"Baccho ke liye"
,"pygame use karo"
,"cartoon visuals"
-
Thoda creative hona:
"Fun sounds"
,"gameplay levels"
,"speed increase with score"
Bhai ek baar maine bola "retro nokia-style snake game" β toh Q ne wahi 8-bit look bana diya! π
π‘ Q CLI Ne Kya-Kya Automatically Kar Diya?
Socho tum chai pee rahe ho aur koi coding kar raha ho...
Wahi kaam kiya Amazon Q CLI ne! βπ»
- β
Project structure bana diya (
main.py
,assets/
,requirements.txt
) - β Snake ka movement, food, score β sab setup kar diya
- β
Even
.gitignore
aurREADME.md
bhi suggest kar diya!
Result: 3 ghante ka kaam sirf 30 minute mein! π
π AI Se Nikal Ke Aayi Yeh Coding Ki Chamatkaariyaan
# Game restart option
if event.key == pygame.K_SPACE and self.game_over:
self.reset_game()
# Pause game option
elif event.key == pygame.K_p and not self.game_over:
self.paused = not self.paused
# End game option
elif event.key == pygame.K_ESCAPE:
self.game_over = True
π Chalo Khelo: snake-game-qcli
Yeh raha GitHub link bhai:
π Repo Link
π Chalane ka Formula:
git clone https://github.com/Utkarshlearner/snake-game-qcli
cd snake-game-qcli
pip install -r requirements.txt
python main.py
π Agar chal gaya, toh chai pila dena!
π₯ Installation
Agar detail mein samajhna hai ki setup kaise hua, toh yeh full guide dekh lo:
π Amazon Q Installation
π Full jugaad documentation, bilkul step-by-step!
π Competition Submission (Jahan Q CLI Ne Dhamaka Kiya!)
Yeh game banaya gaya tha as part of Amazon Q CLI Hackathon/Challenge.
Check out submission or voting link yahaan:
πΈ Q CLI Ne Kaise Jadoo Dikhaya β Screenshots Time!
βChai pee raha tha, aur Q CLI ne full game code bana diya!β β real story π
π§ Prompt Se Pehli Response:
π Project Structure Ready-Made:
π§ Snake Logic Output:
π€ Bhaiyon ke liye Pro Tip:
βAI toh majdoor hai, lekin kaam ka thekedar tum hoβ
Sahi prompt doge, tabhi AI se sahi kaam milega.
Amazon Q CLI ne mera 90s wala pyaar β Snake Game β wapas laa diya β€οΈ
π£ Desi Developer Bhaiyon se Baat
Agar yeh game ne nostalgia jagaya ho ya tum bhi AI ke saath kuch cool banana chahte ho, toh milte hain yahaan:
- π Utkarsh Rastogi
- π Weekend Project Ready β Coding bhi, Masti bhi!
π₯ Aakhri Line
"Code likhna easy hai, samajhna art hai β aur AI apna coder dost hai!"
Top comments (0)