A Zork 1 speedrun

Saturday, December 5, 2026

Comments: (live)

Tagged: zork, zil, apple 2, emulators, david fifield

In case you missed it: David Fifield has released his tool-assisted speedrun of Zork 1. Video here; post on the TAS forum; IF forum thread on the project.

What do we mean by "tool-assisted"? This is a play-through of Zork (r88), running in an Apple 2 emulator. The emulator is rigged to feed in commands as fast as the Apple can accept them. More importantly, the command sequence is optimized to hell and gone -- in 6502 CPU cycles. That is to say, it tries to execute in the shortest possible real time, if it were running on a real Apple 2.

So there's plenty of tricks like "let the thief carry treasures away". But David also had to pay attention to how fast the ZIL parser parses commands. (Which synonyms and phrasings parse faster?) He had to worry about how the interpreter pages in Z-machine "virtual memory" from floppy disc. He had to worry about all sorts of things.

On the up side, he was able to manipulate the game's RNG. Not by hacking the emulated hardware (cheating!) but by tweaking the capitalization of game commands. The game lets you type commands in upper or lower case, or both. But Infocom's 6502 interpreter used player input to seed the RNG. So attack troll and atTacK tROLl both invoke the same action, but might result in different die rolls in the combat function.

I'm summarizing outrageously. See the forum links above for way more explanation in David's own words.

I am not much into the retro-hardware side of IF, but this is a fascinating achievement.

(This entry is cross-posted to my Patreon site.)


Comments from Mastodon (live)

Please wait...