Skip to content

Commit

Permalink
Bug in room fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCoffey committed Oct 16, 2014
1 parent e07991d commit 3e30da7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dungeon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3e30da7

Please sign in to comment.