SK-404

Doc no. SK-404DatasheetRev 2026.11Sheet 2.16 of 4

U4

ASCII Dino

A Chrome-Dino-style endless runner for the terminal, written in Python curses and shipped as a Docker image.

Active

01

Block diagram

Keyboardspace · up · w · down Game loopjump · duck · collide curses viewASCII + braille Terminaldocker run -it
Fig. 1: Keys to frame
02

Characteristics

RendererTerminal curses loop combining ASCII and braille characters for crisp sprite animation over any SSH or PTY session
Modes & AIThree speeds (Easy, Normal, Hard), pterodactyl birds past 350/260/150 points and an Auto-Play (A) autopilot toggle
ControlsSPACE / UP / W to jump, DOWN / S to duck, 1–3 difficulty presets, R restart and M menu
PersistenceSingle persistent high-score file stored beside the script locally or in a mounted Docker /data volume
DependenciesStandard library Python 3 curses only on macOS/Linux, plus a self-contained Dockerfile
  • Python
  • curses
  • Docker
03

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.

04

Files & artifacts

KindFileDetailsSize
Sourcedino.pyComplete Python curses game loop, sprites and collision engine on GitHubGitHub
DockerDockerfileMinimal container image configuration with persistent /data score volumeGitHub
DocsREADME.mdDocker run flags, keyboard controls and difficulty thresholds on GitHubGitHub