Skip to content

Commit

Permalink
Clarified names for current-room.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce Durling committed May 31, 2010
1 parent 1d14f1b commit 80b6ddf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/clork.clj
Expand Up @@ -12,9 +12,9 @@
direction-strings (sort (map #(% direction-desc) exits))]
(reduce print-str direction-strings)))

(defn current-room [world player]
(let [player-location (get-in world [:players player :location])]
(get-in world [:rooms player-location])))
(defn current-room [world player-name]
(let [location-name (get-in world [:players player-name :location])]
(get-in world [:rooms location-name])))

(defn look [world player]
(let [curr-room-name (get-in world [:players player :location])
Expand Down

0 comments on commit 80b6ddf

Please sign in to comment.