Z-Machine (and perhaps other text-based IF engines) implementation in Ruby