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
Game: Hunt the Wumpus
- jonoxer
- Freetronics Staff
- Posts: 298
- Joined: Sat Oct 15, 2011 11:31 am
- Location: Melbourne, Australia
- Contact:
Re: Game: Hunt the Wumpus
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
--
Jon
Re: Game: Hunt the Wumpus
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

Re: Game: Hunt the Wumpus
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.
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.
- jonoxer
- Freetronics Staff
- Posts: 298
- Joined: Sat Oct 15, 2011 11:31 am
- Location: Melbourne, Australia
- Contact:
Re: Game: Hunt the Wumpus
I added a link to it from the Wikipedia page 
--
Jon

--
Jon
Re: Game: Hunt the Wumpus
Sweet! I won't forget you all when I get famous. 
