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
jonoxer
Freetronics Staff
Freetronics Staff
Posts: 297
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: 297
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

harry56
Posts: 4
Joined: Tue Jul 11, 2017 10:50 am

Re: Game: Hunt the Wumpus

Post by harry56 » Wed Jul 12, 2017 3:37 am


jhonlee2050
Posts: 1
Joined: Fri Sep 01, 2017 7:13 pm

Re: Game: Hunt the Wumpus

Post by jhonlee2050 » Fri Sep 01, 2017 7:15 pm

one of my favorite childhood game and thanks for sharing it with us you have done a good job
https://plasmacutteradvisor.com/lotos-l ... er-review/

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest