Posts | Comments

Planet Arduino

Archive for the ‘hunt the wumpus’ Category

Hunt the Wumpus is a text-based survival/horror game developed in 1973. As such, it’s perhaps due for an update, and Benjamin C. Faure was able to do so using an Arduino Mega to run a graphical version on an 8×8 MAX7219 LED display.

The game consists of moving your character through the 64-LED randomly generated world, avoiding pits and bats, attempting to face the Wumpus to fire your one arrow. Navigation is aided by “wind” and “stench” lights, indicating either a pit or the foul Wumpus is nearby. The game is also enhanced with a few LED animations and a small piezo speaker. 

On startup, the game will generate an 8×8 map for the player that contains bats, pits, and a Wumpus. The player must pay attention to their senses to ensure they don’t fall into a pit or run into a Wumpus. Running into a bat might not be instant death, but they can carry you over a pit or even straight to the Wumpus.

If the player wishes to win, they must pinpoint the location of the Wumpus. Then, they must take one step towards the Wumpus (so that they are facing the proper direction) and fire their only arrow. If they hit the Wumpus, they win! If they miscalculated, however, they will meet a grisly fate.

A demo can be seen below, while code for the project is available on GitHub.

For anyone who’s been fiddling around with computers since the days before VGA, “Hunt the Wumpus” probably brings back fond memories. Developed in 1973, this text game has you move around a system of caves searching for the foul-smelling Wumpus, a vile creature which you must dispatch with your trusty bow and arrow. Some consider it to be one of the very first survival horror games ever developed, a predecessor to the Resident Evil franchise as well as the video game version of Hannah Montana: The Movie.

If the concept of “Hunt the Wumpus” sounds interesting to you, but you just can’t get over the whole text adventure thing, you may be in luck. [Benjamin Faure] has developed a semi-graphical version of the classic horror title which might better appeal to your 21st century tastes. Running on an Arduino Mega 2560 with graphics displayed on a 8 x 8 LED matrix, it’s not exactly DOOM; but at least you won’t have to type everything out.

You are winner!

For his handheld version of “Hunt the Wumpus”, [Benjamin] 3D printed a nice enclosure and adorned it with labels and instructions that look like tiny scrolls, a neat touch for a game that’s so old contemporary players would have called Zork a “next gen” game. While playing you can see where you’ve been and where you are currently thanks to illuminated dots on the MAX7219 display, and there are LEDs to warn you of your proximity to bottomless pits and the Wumpus itself. There’s even a piezo speaker that will chirp when a bat is nearby, which is important as they have a tendency to ruin your day by carrying you away to a random location in the cave.

Most of the game looks like an advanced version of Snake, but [Benjamin] did go through the trouble of adding some rudimentary animations and sound effects that play during specific parts of the game. When you shoot your arrow or get carried away by a bat, you’ll see a “cutscene” of sorts on the LED display. It’s a fairly simple effect, but helps break up the otherwise fairly spartan graphics and might just be enough to keep a youngins’ attention.

If you subtract a dimension, this project is reminiscent of the 1D dungeon crawler we covered last year. But if even one dimension is too many, you could always run the text version of “Hunt the Wumpus on your trusty Arduino.



  • Newsletter

    Sign up for the PlanetArduino Newsletter, which delivers the most popular articles via e-mail to your inbox every week. Just fill in the information below and submit.

  • Like Us on Facebook