summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2014-04-02 19:32:08 +1100
committerJed Barber <jjbarber@y7mail.com>2014-04-02 19:32:08 +1100
commit6a143f613747fed15132f1db63695f4d7a9f2eb1 (patch)
treeac5ae086eedfc6a88a150ac639c5168ef035069e
parenta37f9b2c78e5b48917593c0c047fef7e3bb7f264 (diff)
Movement now automatically looks
-rw-r--r--agent.prolog3
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) :-