Skip to content

docs(game): Add The Last Beacon walkthrough - #140

Merged
tony merged 1 commit into
masterfrom
concept/last-beacon
Dec 5, 2026
Merged

tony merged 1 commit into
masterfrom
concept/last-beacon

Conversation

@tony

@tony tony commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Add the playable terminal game walkthrough The Last Beacon (examples/last_beacon/{game.py,tour.py,walkthrough.json}), guide (docs/topics/interactive-game.md), regression suite (tests/test_example_last_beacon.py), and links in docs/topics/index.md, README.md, and CHANGES.

  • Drives the real POSIX PTY game through key pickup, room navigation, TIOCSWINSZ resize, ?1 DECCKM cursor-key check, and full-span bold+green victory verification.
  • Supports cross-platform transcript play and byte-by-byte --replay --chunk-size 1 verification under both normal and python -O interpreters.
  • Guards live-vs-bundled walkthrough.json parity, assert_victory full-span and rows < 2 checks, strict JSON/base64 schema validation, split-byte CSI/SS3/paste input, and win32 guards.

Fixes #116

@tony
tony force-pushed the concept/last-beacon branch from eec7380 to 491b2e9 Compare December 1, 2026 03:31
tony added a commit that referenced this pull request Dec 3, 2026
why: Record the branch's user-visible change in the unreleased notes.

what:
- Add the #140 entry to the Documentation section of CHANGES
@tony
tony force-pushed the concept/last-beacon branch from 3eda9e3 to 66ab484 Compare December 3, 2026 23:58
@tony
tony force-pushed the concept/last-beacon branch from 66ab484 to b514219 Compare December 5, 2026 14:51
@tony
tony force-pushed the concept/last-beacon branch from b514219 to 1f8cff7 Compare December 5, 2026 15:06
@tony
tony force-pushed the concept/last-beacon branch from 1f8cff7 to 98669dc Compare December 5, 2026 15:35
@tony
tony force-pushed the concept/last-beacon branch from 98669dc to 7d51979 Compare December 5, 2026 17:49
@tony
tony marked this pull request as ready for review December 5, 2026 17:49
@tony tony changed the title Concept: Play, test, and replay The Last Beacon docs(game): Add The Last Beacon walkthrough Dec 5, 2026
@tony
tony force-pushed the concept/last-beacon branch from 7d51979 to 4513c4e Compare December 5, 2026 17:54
why: Users need an end-to-end interactive terminal walkthrough showing
open_pty(), DECCKM cursor keys, bracketed paste, ?2026 synchronized
redraws, TIOCSWINSZ resize, FlightRecorder capture, and offline bytewise
replay.

what:
- Add stdlib game examples/last_beacon/game.py, PTY tour/replay script
  examples/last_beacon/tour.py (full-span bold-green victory validation,
  DECCKM verification, FlightRecorder imported from libvt.recorder), and
  examples/last_beacon/walkthrough.json.
- Add docs/topics/interactive-game.md with -O-safe doctests, update
  docs/topics/index.md, link from README.md under Features, and record
  at the top of Documentation in CHANGES.
- Add tests/test_example_last_beacon.py guarding live-vs-bundled
  walkthrough parity, assert_victory() edge cases, schema rejection,
  Editor split-byte sequences, and win32 guards.

Fixes #116
@tony
tony force-pushed the concept/last-beacon branch from 4513c4e to ce8c2a5 Compare December 5, 2026 17:59
@tony
tony merged commit 974a4fa into master Dec 5, 2026
9 checks passed
@tony
tony deleted the concept/last-beacon branch December 5, 2026 18:04
@tony tony mentioned this pull request Dec 5, 2026
35 of 38 tasks

This branch was successfully deployed

1 active deployment
docs — ce8c2a52 Deployed Dec 5, 2026 by tony via build (3.14) #526
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show one tested interactive child in the README and guide

1 participant