Ein einfaches Snake-Spiel programmiert mit Python Pygame
Find a file
tegwick 0f743b3a83
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s
Adopt Target Revenue Source License V1C1 (org-wide preliminary rollout)
Maintainer decision, 2026-07-29: adopts TRSL V1C1 as this repo's preliminary governing license, per target-revenue's workplans/TREV-WP-0008-governance-and-pilot-rollout.md T05. Full specialist legal review is deferred until out of beta (target-revenue SCOPE.md section 1). No Phase is yet declared for this repo.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-30 00:46:29 +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 Adopt Target Revenue Source License V1C1 (org-wide preliminary rollout) 2026-07-30 00:46:29 +02: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.