Skip to content

Commit

Permalink
Scaffold created
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCoffey committed Oct 16, 2014
1 parent 568b423 commit 2851163
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions dungeon.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
class Dungeon
attr_accessor :player

def initialize(player_name)
@player = Player.new(player_name)
@rooms = []
end

class Player
attr_accessor :name, :location

def initialize(player_name)
@name = player_name
end
end

class Room
attr_accessor :reference, :name, :description, :connections

def initialize(reference, name, description, connections)
@reference = reference
@name = name
@description = description
@connections = connections
end
end
end

0 comments on commit 2851163

Please sign in to comment.