summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2014-04-03 20:56:29 +1100
committerJed Barber <jjbarber@y7mail.com>2014-04-03 20:56:29 +1100
commitd64efb674192186522cc7ac998583ed768387e71 (patch)
treedbf12cef1c5fe04453a749dcb44073a5277508a6
parentaafa1d9e7c413d6635755f0f541f0ed44b4ec923 (diff)
Added message for attempting to move 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 e48049d..b505c20 100644
--- a/agent.prolog
+++ b/agent.prolog
@@ -90,6 +90,10 @@ move(Direction) :-
look, !.
+move(_) :-
+ write('Unknown direction.\n\n').
+
+
take(gold) :-
here(Location),
goldAt(Location),