Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sicherheitslücken (CVE)USN-8797-1: GStreamer Base Plugins vulnerability(21.09.2026 um 20:05 Uhr)
Sichere ProgrammierungYou can build HTML emails with Tailwind CSS(21.09.2026 um 22:15 Uhr)
Sichere ProgrammierungDEV-Part-1-Backend.md(21.09.2026 um 22:24 Uhr)
Sichere ProgrammierungWhat It Actually Costs to Serve a 1M-Token Model in Production(21.09.2026 um 22:33 Uhr)
Sichere ProgrammierungHow to Check an Agent's Diagnosis Before It Touches Production(21.09.2026 um 22:53 Uhr)
Linux Tipps & HardeningWhat if Spotify was self-hosted? I think I got pretty close.(21.09.2026 um 22:33 Uhr)
Linux Tipps & HardeningSandboxing on Linux(21.09.2026 um 22:45 Uhr)
Sicherheitslücken (CVE)USN-8797-1: GStreamer Base Plugins vulnerability(21.09.2026 um 20:05 Uhr)
Sichere ProgrammierungYou can build HTML emails with Tailwind CSS(21.09.2026 um 22:15 Uhr)
Sichere ProgrammierungDEV-Part-1-Backend.md(21.09.2026 um 22:24 Uhr)
Sichere ProgrammierungWhat It Actually Costs to Serve a 1M-Token Model in Production(21.09.2026 um 22:33 Uhr)
Sichere ProgrammierungHow to Check an Agent's Diagnosis Before It Touches Production(21.09.2026 um 22:53 Uhr)
Linux Tipps & HardeningWhat if Spotify was self-hosted? I think I got pretty close.(21.09.2026 um 22:33 Uhr)
Linux Tipps & HardeningSandboxing on Linux(21.09.2026 um 22:45 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Building Pacman Game with #AmazonQDeveloper

Building Pacman Game with Amazon Q Developer CLI After installation and aws configure of the #AmazonQDeveloperCLI as on the installation doc link below. docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-installing.html?. I…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Building Pacman Game with Amazon Q Developer CLI



After installation and aws configure of the #AmazonQDeveloperCLI

as on the installation doc link below.



docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-installing.html?.



I started with these steps below.



Step 1

Project Setup

Prompt: 

"Initialize a new Python project for a Pacman game using Pygame. Create a folder structure with src, assets, and tests directories."



Install Dependencies


Prompt: 

"Installing Pygame in the project environment."
Got the confirmation: 

import pygame; print('Pygame installed successfully')



Greeted with/and






Hello from the pygame community, pygame.org/contribute






Step 2

Basic Game Window

Prompt: 

"Write code to create a Pygame window titled 'Pacman' with a black background."



Maze Creation

Prompt: 

"Generate a 2D array representing the Pacman maze layout."
Prompt: "Draw the maze walls and paths on the screen using Pygame rectangles."



Running the game with

 

"parallels@parallels-Parallels-Virtual-Platform:~$ cd ~/Desktop/pacman-game && python3 main.py"



PACMAN






Pacman game is on!.






Step 3

Pacman Character

Prompt: 

"Create a Pacman sprite that can move in four directions with keyboard input."



PACMAN1






Pacman game Newly improved!.






Ghost Implementation

Prompt: 

"Add ghost sprites with basic movement logic."
Prompt: "Implement simple AI for ghosts to chase Pacman."



Pellets and Scoring System

Prompt: 

"Place pellets throughout the maze and increase score when Pacman eats them."



Game Logic Implementation

Prompt: 

"Detect collisions between Pacman, ghosts, and pellets.

"
Prompt: 

"End the game if Pacman collides with a ghost."



PACMAN1

Improved!






The game now includes

1, Pellets & Scoring.

2, White pellets placed throughout the maze (value 2 in maze array).

3, Score increases by 10 points when Pacman eats a pellet.

4, Score displayed in top-left corner.



Collision Detection:

5, Pellet collision: Removes pellets when Pacman touches them.

6, Ghost collision: Ends game when Pacman gets too close to any ghost (distance < 25 pixels).



Game Logic:

7, Game over state when Pacman hits a ghost.

8, Press R to restart after game over.

9, Game continues until collision occurs.



User Interface Enhancement

Prompt: 

"Display the current score and lives remaining on the screen."



Testing Implementation

Prompt: 

"Write unit tests for Pacman movement and collision detection."



Testing fixes applied:




  1. Removing the problematic WAV files from the assets/sounds directory

  2. Simplifying the sound generation to create a single reliable beep sound

  3. Using the same beep sound for all game events (chomp, death, start)



Polish Phase

Prompt: 

"Add sound effects and improve graphics for Pacman and ghosts.


Prompt: 

"Implement a start screen and game over screen."



Polish Added: Sound Effects, Improved Graphics, Game Screens Improvements but the sound was not working.






Which brought Pacman-game to the image below...






START PACMAN






The start Screen above and the main game screen below






PLAY PACMAN






Run and Debug

Prompt: 

"Run the game and debug any issues found during playtesting."

Issues identified:

Improvement fixes:




  1. Adding pause functionality and fixing ghost speed

  2. Adding win condition when all pellets are collected.



Debugging fixes:

1, Fixing pellet collision detection to prevent multiple sounds when standing on a pellet






Agentic AI Prompts Used:

1 "Generate Pygame code for a Pacman character that moves with arrow keys."

2 "Create a function to draw a maze from a 2D list."

3 "Implement ghost AI that follows Pacman."

4 "Write code to detect when Pacman eats a pellet and update the score."

5 "Add a game over screen when Pacman is caught by a ghost."






This demonstrates effective use of Amazon Q Developer for building classic games through incremental development and targeted AI assistance.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Building Pacman Game with #AmazonQDeveloper

Thematisch verwandte Begriffe: Building, Pacman, Game, with · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-45381 | Tautulli is a Python based monitoring and tracking tool for Plex Media S…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick