Ein einfaches Snake-Spiel programmiert mit Python Pygame
Find a file
tegwick 9d4dfde7ae
All checks were successful
CI Smoke / host-smoke (push) Successful in 1s
CI Smoke / container-smoke (push) Successful in 4s
docs: workplan-first agent guidance prose (CUST-WP-0055 T04 batch 4)
2026-07-08 17:22:13 +02:00
.claude/rules docs: workplan-first agent guidance prose (CUST-WP-0055 T04 batch 4) 2026-07-08 17:22:13 +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 docs: workplan-first agent guidance prose (CUST-WP-0055 T04 batch 4) 2026-07-08 17:22:13 +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
SCOPE.md docs: workplan-first agent guidance prose (CUST-WP-0055 T04 batch 4) 2026-07-08 17:22:13 +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.