summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2014-04-03 20:57:47 +1100
committerJed Barber <jjbarber@y7mail.com>2014-04-03 20:57:47 +1100
commit171d92ab3de4874e981f567603ec38d9a0885bc1 (patch)
tree3552cd824f21ae94f9db33a01c6721ded6a1bcba
parentd64efb674192186522cc7ac998583ed768387e71 (diff)
Added message for attempting to shoot in an unknown direction
-rw-r--r--agent.prolog4
1 files changed, 4 insertions, 0 deletions
diff --git a/agent.prolog b/agent.prolog
index b505c20..8adbe3e 100644
--- a/agent.prolog
+++ b/agent.prolog
@@ -129,6 +129,10 @@ shoot(Direction) :-
moveWumpus.
+shoot(_) :-
+ write('Unknown target.\n\n').
+
+
% letting the player know what's going on