Reviving Zork: A Cosmopolitan Porting Adventure
2025-04-14
The author successfully ported the original Infocom UNIX source code of the Zork text adventure game (from 1985) to modern operating systems using the Cosmopolitan project. Cosmopolitan's 'write once, run anywhere' capability allowed a single compilation to create executables running on Windows, macOS, Linux, and more, without needing a virtual machine. The process involved resolving issues like conflicting NULL definitions, missing function declarations, and deprecated functions in the original K&R-style C code. The result? Standalone executables of the Zork trilogy, available on GitHub, letting players experience this classic game on modern hardware.
Game