Download the Wumpus game shown in lectures.
Examine the code try to follow how it works. Make the following changes to the game:
- Rearrange the rooms so that are in a 4×5 grid.
- 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).
- 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?
- 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.