Doc no. SK-404DatasheetRev 2026.11Sheet 2.16 of 4
ASCII Dino
A Chrome-Dino-style endless runner for the terminal, written in Python curses and shipped as a Docker image.
Active
Source on GitHub
$ python3 dino.py
Block diagram
Characteristics
| Renderer | Terminal curses loop combining ASCII and braille characters for crisp sprite animation over any SSH or PTY session |
|---|---|
| Modes & AI | Three speeds (Easy, Normal, Hard), pterodactyl birds past 350/260/150 points and an Auto-Play (A) autopilot toggle |
| Controls | SPACE / UP / W to jump, DOWN / S to duck, 1–3 difficulty presets, R restart and M menu |
| Persistence | Single persistent high-score file stored beside the script locally or in a mounted Docker /data volume |
| Dependencies | Standard library Python 3 curses only on macOS/Linux, plus a self-contained Dockerfile |
Overview & build notes
Reimagines the offline browser dinosaur runner as a zero-dependency Python curses binary (dino.py) that runs identically in a native terminal or inside a throwaway TTY container (docker run -it).
Frame rendering mixes standard box/block glyphs with dense Unicode braille cells for smooth legs, ducking posture and oncoming birds without needing truecolour escape sequences or external TUI libraries.
High scores persist cleanly across container rebuilds by mounting /data (HIGHSCORE_FILE), and pressing A hands control to a built-in obstacle-jumping demo bot.
Files & artifacts
| Kind | File | Details | Size |
|---|---|---|---|
| Source | dino.py | Complete Python curses game loop, sprites and collision engine on GitHub | GitHub |
| Docker | Dockerfile | Minimal container image configuration with persistent /data score volume | GitHub |
| Docs | README.md | Docker run flags, keyboard controls and difficulty thresholds on GitHub | GitHub |