Business Programming

Course announcements for INFS1609 and INFS2609

Business Programming random header image

Lab Week 11 – Wumpus

Posted by on October 2nd, 2012 · Labs

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 ↓

Comments are closed.