Ein einfaches Snake-Spiel programmiert mit Python Pygame
Find a file
custodian-sync c5f4272002
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
chore(consistency): sync task status from DB [auto]
Updated by fix-consistency on 2026-07-08:
  - update .custodian-brief.md for python-snake
2026-07-08 15:49:04 +02:00
.claude/rules Regenerate agent instructions from state-hub templates (CUST-WP-0055 T01) 2026-07-08 14:50:33 +02:00
.forgejo/workflows Add Forgejo CI smoke workflow (enablement template) 2026-07-08 14:18:47 +02:00
.custodian-brief.md chore(consistency): sync task status from DB [auto] 2026-07-08 15:49:04 +02:00
.gitignore Initial commit 2026-04-19 14:04:54 +00:00
.repo-classification.yaml Add repo classification for State Hub registration 2026-07-08 14:25:54 +02:00
AGENTS.md Regenerate agent instructions from state-hub templates (CUST-WP-0055 T01) 2026-07-08 14:50:33 +02:00
CLAUDE.md Regenerate agent instructions from state-hub templates (CUST-WP-0055 T01) 2026-07-08 14:50:33 +02:00
LICENSE Initial commit 2026-04-19 14:04:54 +00:00
README.md Add local run instructions to README 2026-07-08 14:41:55 +02:00
snake.py Manueller Upload erster Stand 2026-04-19 14:47:12 +00:00

python-snake

Ein einfaches Snake-Spiel programmiert mit Python Pygame

Lando, 19.4.2026

Voraussetzungen

  • Python 3.10+
  • Pygame
  • Ein grafisches Display (unter WSL: WSLg mit DISPLAY=:0)

Lokal starten

cd python-snake
python3 -m venv .venv
.venv/bin/pip install pygame
.venv/bin/python snake.py

Auf Systemen mit PEP 668 (z. B. Ubuntu) bitte die virtuelle Umgebung verwenden statt pip install global.

Steuerung

  1. Spielfenster fokussieren und Enter drücken, um zu starten.
  2. Pfeiltasten bewegen die Schlange.
  3. Rote Felder fressen erhöht den Zähler („Count“).
  4. Nach Game Over: Y für eine neue Runde, eine andere Taste zum Beenden.