pi-dunnet
Play classic Emacs Dunnet text adventure inside pi — /dunnet
Package details
Install pi-dunnet from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-dunnet- Package
pi-dunnet- Version
1.0.4- Published
- Apr 17, 2026
- Downloads
- 626/mo · 14/wk
- Author
- hdh
- License
- GPL-3.0
- Types
- extension
- Size
- 218 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./extensions"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-dunnet
The classic Emacs Dunnet text adventure inside of pi.
What is Dunnet?
Dunnet is a text adventure game originally written by Ron Schnell in 1982 and shipped as a built-in game in Emacs. Explore a dungeon, collect treasures, solve puzzles, and try to achieve the rank of Grandmaster. This is a port of dunnet.el in TypeScript for pi.
Install
pi install npm:pi-dunnet
Or manually:
npm install pi-dunnet
Play
In pi, type:
/dunnet
Opens a TUI game panel where you can play interactively.
Controls
| Key | Action |
|---|---|
| Enter | Send command |
| Esc | Close game panel |
| PgUp / PgDn | Scroll output |
| Backspace | Delete character |
Commands
look — describe current room
go north — move in a direction (n/s/e/w/ne/nw/se/sw/up/down/in/out)
inventory — list what you're carrying
take <item> — pick something up
drop <item> — put something down
examine — look at something closely
eat <item> — eat something
read <item> — read something
dig — dig in the current room (if you have a shovel)
save — save your progress
restore — restore a saved game
quit — quit (and start a new session)
help — list available commands
score — check your current score
License
GPL-3.0.