COMP1400 – Programming for Designers

Class announcements for Programming for Designers

COMP1400 – Programming for Designers random header image

Tut Wk 11 – Wumpus

Posted by on October 1st, 2012 · Lab

Download the Wumpus game shown in lectures.

Examine the code try to follow how it works. Make the following changes to the game:

  1. Rearrange the rooms so that are in a 4×5 grid.
  2. Make it so that the wumpus needs to be shot more than once (you choose how many times) to be killed. Each time it is shot it runs to a random neighbouring room (not the one the player is in).
  3. Add a new ‘hazard’ – a Trader who gives the player more arrows. Consider:
    • What ‘warning’ sound is heard if the trader is nearby?
    • What happens when the player enters the trader’s room?
    • Where does the trader fit in the sequence of hazards?
    • What should happen if the player shoots the trader?
  4. Give the player more ‘lives’. So if they die (by pit or wumpus) they reappear in a random room.

No Comments so far ↓

There are no comments yet...Kick things off by filling out the form below.

You must log in to post a comment.