Re:Zarf Updates: A treasury of Zork maps
by Nick87633 on Tuesday February 14, 2023 @02:02PM
(#34794275)
Just started playing a few days ago... I've been able to draw out most of it as planar 'areas' with curved arrows for paths. Even for some of the easier 'maze' type areas it works, but I'm about to cave in and build an adjacency matrix for one of the difficult areas. (pun not intended?)
The better way to map Zork is to treat it like a non-planar graph and use graph paper to build an adjacency matrix [1]. Since Z-machine is a bytecode VM that often ran on 8-bit computers it's a pretty safe assumption that the game likely has 256 or fewer vertices in the graph. So if you give every area you visit a 2-digit hex ID you can make the matrix small enough to be manageable.
[1] https://en.wikipedia.org/wiki/Adjacency_matrix