diff options
author | Jed Barber <jjbarber@y7mail.com> | 2014-04-03 20:56:29 +1100 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2014-04-03 20:56:29 +1100 |
commit | d64efb674192186522cc7ac998583ed768387e71 (patch) | |
tree | dbf12cef1c5fe04453a749dcb44073a5277508a6 | |
parent | aafa1d9e7c413d6635755f0f541f0ed44b4ec923 (diff) |
Added message for attempting to move in an unknown direction
-rw-r--r-- | agent.prolog | 4 |
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), |