Game: Hunt the Wumpus

The LCD and Keypad Shield gives you a handy 16-character by 2-line display, 5 buttons and a controllable backlight.
Post Reply
eturnerx
Posts: 15
Joined: Sun Aug 05, 2012 6:39 am

Game: Hunt the Wumpus

Post by eturnerx » Sun Aug 26, 2012 2:12 pm

This week I recreate an old text game that I remember as a kid in the '80s: Hunt the Wumpus. It apparently started in 1971. Basically you wander around a map trying not to fall into a pit trap or get eaten by the wumpus. You win by shooting the wumpus - but don't shoot yourself!

I use a "struct" to create a datatype for each of the rooms in the map. Also; a giant switch...case block controls the whole thing. The video is a much shorter 3 and a half minutes.

Video: http://youtu.be/_nOYWH1YqFs
Code: http://pastebin.com/WZmKnt95

User avatar
tronixstuff
Freetronics Staff
Freetronics Staff
Posts: 341
Joined: Tue Nov 01, 2011 10:03 am
Location: Melbourne, Australia

Re: Game: Hunt the Wumpus

Post by tronixstuff » Mon Aug 27, 2012 2:40 am

Once again - Well done! And thank you for sharing that with us.
:)

User avatar
jonoxer
Freetronics Staff
Freetronics Staff
Posts: 296
Joined: Sat Oct 15, 2011 11:31 am

Re: Game: Hunt the Wumpus

Post by jonoxer » Mon Aug 27, 2012 2:44 am

Do you have a blog or somewhere more permanent than PasteBin where you could write this up? I'd like to add a link to it from the Hunt the Wumpus article on Wikipedia.
--
Jon

eturnerx
Posts: 15
Joined: Sun Aug 05, 2012 6:39 am

Re: Game: Hunt the Wumpus

Post by eturnerx » Thu Aug 30, 2012 10:44 pm

jonoxer wrote:Do you have a blog or somewhere more permanent than PasteBin where you could write this up? I'd like to add a link to it from the Hunt the Wumpus article on Wikipedia.
--
Jon
:oops: Okay, I'll move it to my own site. I used Pastebin for the syntax highlighting and ability to dl in raw txt etc.

eturnerx
Posts: 15
Joined: Sun Aug 05, 2012 6:39 am

Re: Game: Hunt the Wumpus

Post by eturnerx » Fri Aug 31, 2012 4:50 pm

I've moved code for the 3 arduino + freetronics 16x2 LCD shield videos onto my own domain. The Wumpus code is available as a link from:

http://eturnerx.blogspot.com/2012/08/ar ... rsion.html

I'd probably not share a direct link to the actual code since it kinda needs the blog post / video to contextualise it. Maybe I should write better comments :)

Thanks for considering this for Wikipedia.

User avatar
jonoxer
Freetronics Staff
Freetronics Staff
Posts: 296
Joined: Sat Oct 15, 2011 11:31 am

Re: Game: Hunt the Wumpus

Post by jonoxer » Tue Sep 18, 2012 10:42 am

I added a link to it from the Wikipedia page :-)
--
Jon

eturnerx
Posts: 15
Joined: Sun Aug 05, 2012 6:39 am

Re: Game: Hunt the Wumpus

Post by eturnerx » Fri Sep 21, 2012 9:13 pm

Sweet! I won't forget you all when I get famous. :P

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest