diff options
author | Jed Barber <jjbarber@y7mail.com> | 2014-04-02 19:32:08 +1100 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2014-04-02 19:32:08 +1100 |
commit | 6a143f613747fed15132f1db63695f4d7a9f2eb1 (patch) | |
tree | ac5ae086eedfc6a88a150ac639c5168ef035069e | |
parent | a37f9b2c78e5b48917593c0c047fef7e3bb7f264 (diff) |
Movement now automatically looks
-rw-r--r-- | agent.prolog | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/agent.prolog b/agent.prolog index 2ff60eb..11502ac 100644 --- a/agent.prolog +++ b/agent.prolog @@ -83,7 +83,8 @@ move(Direction) :- asserta(here(New)), join(['You move to the ',Direction,' .\n\n'],W), write(W), - checkHazards, !. + checkHazards, + look, !. take(gold) :- |