Categories
gaming

My Parser Computer Game

Programmed in Python 3:

https://github.com/GiovanniDannato/Do-Anything-Text-Game

Growing up I had a special affection for games where you could type commands into a parser because unlike a mouse interface you could attempt anything you could possibly think of and play with language itself.  In puzzle games this made it so you had to actually think things through and no clickfest could save you.  One could try to cheat by typing “use x with y” for every combo of items in your inventory but designers were usually more clever than this.
Frederik Pohl’s Gateway, one of my favorite games of all time, had limited graphics but understood the fun and capricious nature of the text interface better than any other.  The designers actually made an effort to think of all the dumb stuff you might type in. Here’s a couple of screen shots I just made:

messing around in Frederik Pohl’s gateway

 

 

What’s more, Gateway was a very well-made game when you actually took it seriously.  I loved that kind of depth.  For years I wanted to make something similar.  So I did as a way to learn some python a couple years ago.  I’m sure my code is terrible by any professional standard but it seems to work.  There are still bugs of course.

I tried to add some of the whimsical flavor I loved so much back in the day from games like Zork and Gateway. Come to think of it, death sequences were definitely inspired by reading too many Choose Your Own Adventure books as a kid.  I have monsters, puzzles, and an ending.  The player character can take 3 hits before dying.  There is an optional item that will improve your chances at the end but solving that puzzle requires thinking a bit immaturely. If a monster seems overwhelmingly difficult, you probably haven’t found the right item/solved the puzzle yet. If you have a weapon but use the word “hit” you will still be attacking with your hands. For those who have never played these kinds of games:
‘i’ =”look at inventory”
‘n, s, e, w’ = “go x” direction
‘l’ = “look at room”

Finally got around to putting it on github:
https://github.com/GiovanniDannato/Do-Anything-Text-Game
DoAnything is the executable and it should run in python 3.

By Giovanni Dannato

In 1547 I was burnt at the stake in Rome for my pernicious pamphlet proclaiming that the heavens were not filled with a profusion of aether, but rather an extensive vacuum.
Now, the phlogiston that composed my being has re-manifested centuries in the future so that I may continue the task that was inconveniently disrupted so long ago.
Now, I live in Rome on the very street where I (and others) were publicly burnt. To this day, the street is known as what I would translate as 'Heretic's Way'. My charming residence is number 6 on this old road. Please, do come inside and pay me a visit; I should be delighted to spew out endless pedagoguery to one and all...

6 replies on “My Parser Computer Game”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s