|
| 1 | +# Copilot Instructions for Jericho |
| 2 | + |
| 3 | +Jericho is a Python library that connects learning agents with interactive |
| 4 | +fiction (text adventure) games via a Z-machine interpreter (frotz). |
| 5 | + |
| 6 | +## Building the Project |
| 7 | + |
| 8 | +```bash |
| 9 | +pip install -e '.' |
| 10 | +``` |
| 11 | + |
| 12 | +This compiles the frotz C library and installs jericho in development mode. |
| 13 | +Run tests with `pytest -vv tests/`. |
| 14 | + |
| 15 | +## Game ROMs |
| 16 | + |
| 17 | +Game ROM files (`.z3`, `.z5`, `.z8`, etc.) live in the `roms/` directory. |
| 18 | + |
| 19 | +To download games from the canonical game suite: |
| 20 | + |
| 21 | +```bash |
| 22 | +# Download a specific game |
| 23 | +curl -fsSL "https://raw.githubusercontent.com/BYU-PCCL/z-machine-games/master/jericho-game-suite/<game>.z5" -o roms/<game>.z5 |
| 24 | + |
| 25 | +# Browse the full suite at: |
| 26 | +# https://github.com/BYU-PCCL/z-machine-games/tree/master/jericho-game-suite |
| 27 | +``` |
| 28 | + |
| 29 | +## External Resources |
| 30 | + |
| 31 | +### IFDB — Interactive Fiction Database |
| 32 | + |
| 33 | +Use https://ifdb.org/ to look up game metadata, descriptions, ratings, and |
| 34 | +details. Useful API patterns: |
| 35 | + |
| 36 | +- Search for a game: `https://ifdb.org/search?searchfor=<game+name>` |
| 37 | +- View a game page: `https://ifdb.org/viewgame?ifid=<IFID>` |
| 38 | + |
| 39 | +### Transcripts — allthingsjacq.com |
| 40 | + |
| 41 | +Game transcripts and walkthroughs are available at https://allthingsjacq.com/. |
| 42 | +Use these to understand expected game behavior, solutions, and interaction |
| 43 | +patterns. |
| 44 | + |
| 45 | +### Walkthroughs (local) |
| 46 | + |
| 47 | +This repository does not ship a `walkthroughs/` directory by default. If you |
| 48 | +create one locally, use it to store walkthrough files that map game filenames |
| 49 | +to sequences of actions. |
0 commit comments