Skip to content

Instantly share code, notes, and snippets.

@practicingruby
Last active December 28, 2015 16:59
Show Gist options
  • Select an option

  • Save practicingruby/7532684 to your computer and use it in GitHub Desktop.

Select an option

Save practicingruby/7532684 to your computer and use it in GitHub Desktop.

"What in the world is a Wumpus?", Ruth asked.

"It's a terrible cave-dwelling beast", said Grandpa Joe, "and by golly, we're going to hunt it!"

Ruth looked at the old man and sighed deeply. It would seem that she had got her hopes up for nothing, and that today would be the usual mix of boring and crazy she had come to expect from her grandfather.

"Grandpa, I thought you said we were going to write computer programs, and now you're talking nonsense about a hunting trip. Did you forget to take your medication today?"

The old man was frustrated by her accusation, but it wasn't enough to curb his enthusiasm.

"Don't be so annoyed, my dear. We're going to do both! Today we're going build a computer game together. All we need to do is write a little bit of code and use our imaginations, and we'll be hunting the Wumpus in no time at all."

The puzzled look on Ruth's face made it clear to the old man just where the disconnect was. His granddaughter didn't know the first thing about "video games", and to be frank, she didn't have much of a sense of "imagination", either. The world she lived in leaned heavily on virtual reality for entertainment. Those big-budget affairs had plenty of room for personalization, but they were intentionally designed to leave very little up to the imagination. To Ruth, the concept of cooking up a little game in your living room using nothing but the ideas in your head was a completely foreign concept.

"I'm sorry Grandpa, maybe you aren't crazy, but I still don't get it."

The old man felt glad to hear her say this, because he could tell from her voice that she was still interested, even if she didn't come out and say it.

"I know this is a bit uncomfortable for you Ruth, and I'm sorry for rushing ahead with things. I'm 100 years older than you are, and we both know that a lot has changed about the world in the last century. I think that's why we're having such a hard time understanding each other.

Let me back up a little bit and fill in some details for you. The game we're going to build today is based on one that was originally built by Gregory Yob back in the 1970s, and it's called 'Hunt the Wumpus'. He originally wrote that game using the BASIC programming language, but even back in my day that was considered a rather ancient and awkward language to work with. So I think today we'll work with the Ruby language, which you should now understand at least as well as I do -- assuming that lesson card did its job right.

Programming can be really complicated, and sometimes it's better to just get started and figure things out as you go, and maybe if we did that, it would be a bit less overwhelming for you. What do you think?"

Ruth sat quietly for a moment, considering her grandfather's words. Realizing that she had nothing to lose in trying to understand what the hell he was talking about, she nodded in agreement, and their journey began.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment