For the first tutorial we’re going to look at something really important. We’re going to create the first tool in our toolbox for dealing with user commands. It is of course the section function. A small function that takes the player’s input and splits it up into words we can later make use of. It’s not a glamorous function, and doesn’t produce anything the player can see but it is absolutely vital to any parser.
This is just going to be a short introduction to creating your own text adventure. I’ll start getting into code in another post. They’ll assume only the most basic of programming knowledge, more on that later.
So why am I writing this? Surprisingly I found it more difficult than I would have expected to find resources for absolute beginners writing their own parser for a text adventure so I thought this would be a good place to put one that might be useful to others! Your google skills may be better than mine however, feel free to share resources in the comments.