diff options
author | Jed Barber <jjbarber@y7mail.com> | 2014-03-21 03:01:42 +1100 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2014-03-21 03:01:42 +1100 |
commit | 410fc38f935b552a58af2e716d2fe814eee432c9 (patch) | |
tree | 606416b2be1b88eb3861c9ee4bb48ec081250741 /map.prolog | |
parent | c33ee86c272aaac287970a588b8c6dbf6aa52211 (diff) |
Basic items and look command
Diffstat (limited to 'map.prolog')
-rw-r--r-- | map.prolog | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,4 +1,14 @@ +:- module(map, [connects/3, writeExits/1]). + + +writeExits(L) :- + connects(L,_,D), + join(['You see an exit to the ',D,'.\n'],M), + write(M), + fail. +writeExits(_) :- true. + % map has 20 rooms, labelled a through t % connections between rooms inscribe a dodecahedron, with the rooms |