Configure Piper TTS synthesis via environment variables (speaker_id,
length_scale, noise_scale, noise_w_scale, volume) loaded from .env
with python-dotenv. Includes .env.example as reference template.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Enable TTS with `h2g2 --audio` to hear game text spoken aloud using
the Piper en_GB-alan-medium voice. Audio plays in a background thread
while text displays normally. The new `replay` in-game verb replays
the last spoken audio. Voice model path is configurable via --voice.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Serialize full game state (objects, flags, containment, clocks) to
JSON files in ~/.h2g2_saves/. Players can name saves, list existing
ones, and restore by name or number.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace bare input() with a custom terminal reader that supports
arrow-key history navigation, cursor movement, and line editing.
History buffer grows dynamically with no fixed limit.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Move original ZIL source files (.zil, .xzap, .errors) and
walkthrough.md into docs/ to keep the project root clean.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Step-by-step guide covering the critical path from bedroom to
Magrathea, all puzzle solutions, scoring opportunities (370 pts
critical path, 420 max), timing windows, and death conditions.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add README.md with install/run instructions using uv
- Add build-system and script entry point to pyproject.toml
- Add .gitignore for __pycache__ and save files
- Remove placeholder main.py (entry point is h2g2.main:main)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Original ZIL source code for The Hitchhiker's Guide to the Galaxy (Infocom, 1984)
plus a native Python text adventure engine with the Earth opening sequence playable
(Bedroom → Front Porch → Front of House → Country Lane → Pub).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>