summaryrefslogtreecommitdiff
path: root/readme.txt
blob: e063e3e97a931b31e15aad4f6c484cf6d72b815a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

Hunt The Wumpus



An implementation of the classic text adventure game.

You are trapped in a cave, and must kill the deadly wumpus. However, should you
enter the same room as the wumpus, it will eat you before you can move. So the
game revolves around deducing which room the wumpus is in, and then shooting it
from the next room over. Note that if you guess incorrectly, the wumpus will be
startled and will move from where it is to a random adjacent room.


If the wumpus is in a room directly connected to the current one, you will
perceive a stench.

If your current room is covered in bat guano, that is a sign that a connecting
room contains a giant bat that will transport you to a different random room in
the cave.

Feeling a breeze indicates that a connecting room contains a bottomless pit, which
is of course, quite deadly.

Seeing a glitter indicates that there is gold to be found where you are. GOLD! You
may then take the gold. It's a bonus.


Valid commands:
look
move <direction>
go <direction>
<direction>
shoot <direction>
take gold
exit
quit

All of these should be fairly self explanatory. Look can be abbreviated as l, and
directions can be abbreviated using standard compass notation.


This version of Hunt The Wumpus was implemented in SWI-Prolog, and compiling,
interpreting, or otherwise playing it requires prolog to be installed. Preferably
SWI-Prolog, as an audit regarding SWI-exclusive built in predicates has yet to be
conducted.