thing("apple") { property "edible" energy 2 } thing("lamp") { property "lightable" energy 20 } thing("butter") { property "lightable", "edible" energy 3 } room("start") { description "The starting room" inventory "apple", "lamp" north "another" south "another" east "start" west "start" } room("another") { description "Just another room" property "dark" inventory "apple", "apple" east "start" west "start" } # vim: set ft=ruby: