From 3e30da73c01ff4afae3c0641a563d2677570c457 Mon Sep 17 00:00:00 2001 From: Jorge Madrid Date: Thu, 16 Oct 2014 17:05:26 -0500 Subject: [PATCH] Bug in room fixed --- dungeon.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dungeon.rb b/dungeon.rb index 7ecb839..08627a4 100644 --- a/dungeon.rb +++ b/dungeon.rb @@ -68,15 +68,20 @@ def initialize(reference, name, description, connections) end def full_description - @name + "\n\nYou are in" + @description + @name + "\n\nYou are in " + @description end end + # Create the main dungeon object + my_dungeon = Dungeon.new("Fred Bloggs") #Adding new rooms my_dungeon.add_room(:largecave, "Large Cave", "a large cavernous cave", {:west => :smallcave}) my_dungeon.add_room(:smallcave, "Small Cave", "a small, claustrophobic cav", {:east => :largecave}) + # Start the dungeon by placing the player in the large cave + my_dungeon.start(:largecave) + end