Let's build Zork using Rust!

Games like Zork are basically big state machines. You advance in the game performing actions that lead your character from situation to situation. Eventually you either die horribly or win the game. The purpose of this post is to build a - simplified - textual game. We use it as a pretext to explore one way of treating state machines using Rust (yes, it’s a clickbaity title)… State machines in Rust There are various ways to model a state machine in Rust....

17 January 2018 · 8 min · Francesco Cogno