(capfirst s)
Converts first character to upper-case, leaves the rest untouched.
Converts first character to upper-case, leaves the rest untouched.
(current-room game-state)
Get the current room spec from game state.
Get the current room spec from game state.
(find-item game-state token)
Try to find the given item name either in the inventory or the current room.
Try to find the given item name either in the inventory or the current room.
(get-visible-room game-state room-name)
Returns the spec of the room by the given name, if it's connected and visible (i.e. known or visited) current one.
Returns the spec of the room by the given name, if it's connected and visible (i.e. known or visited) current one.
(room-as-item room)
Adapt the room record to be used as an item. For now it just removes :items to avoid conflicts.
Adapt the room record to be used as an item. For now it just removes :items to avoid conflicts.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close