Giter VIP home page Giter VIP logo

hunt-the-wumpus's Introduction

Hunt-the-Wumpus

Version of Greg Yob's 1972 text adventure. Used as teaching aids for my programming classes.

Hunt the Wumpus was originally written by Gregory Yob in BASIC while attending the Dartmouth campus of the University of Massachusetts in 1972 or 1973. Out of frustration with all the grid-based hunting games he had seen, such as Snark, Mugwump and Hurkle, Yob decided to create a map-based game. Hunt the Wumpus was first published in the People's Computer Company journal Vol. 2, No. 1 in mid 1973, and again in Creative Computing in its October, 1975 issue. This article was later reprinted in the book The Best of Creative Compting, Volume 1. Yob later developed Wumpus 2 and Wumpus 3 which offered more hazards and other cave layouts. (Wikipedia, July 2015)

Rather than play on a grid or cube, Yob used a dodecahedron for the cave system. A dodecahedron is a twelve sided platonic solid. It has hexagonal faces and twenty vertices or corners. Each vertex is joined to three neightbouring vertices.

image image

The caves contain some hazards. One cave contains the Wumpus. If the player enters the Wumpus cave the Wumpus will eat the player and the player will die. Two caves contain bottomless pits and if the player falls down these then they die. Lastly, two caves contain giant bats. If the player goes into these caves the giant bats will carry them to a random cave in the system, which could be the Wumpus cave or a pit cave.

There are some warnings though. If the player’s current cave neighbours the Wumpus cave they will smell the Wumpus because Wumpuses smell terrible. If they are in a cave the neighbours a pit cave they will feel a cold breeze coming up from the cave and if the cave neighbours a bat cave they will hear the flapping of wings. The players goal is to kill the Wumpus with an arrow so the player can shoot into a neighbouring cave and if the Wumpus is in there they will kill it and win. This is a bit different to the original version which used a “crooked” arrow that could fly through up to five caves. This application will have a simple one cave arrow to keep the code simple.

hunt-the-wumpus's People

Contributors

ahansen2014 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.