???????????????????????????????????????????????????????????????????????ζ????????д?С?δ?????????????????????????????????????????κ???????????????????????????????????????????????Щ???????????????????????С???Щ????????????????е?bug???????????????????????????????????????????????????

?????????????????????????????С????????????????????????????????????????ò????????????????????????????????д?????д???д??????????????????????????????????

????????????????????????д????????????????????????????????????????????????????????????????????????????????????????????????????????????????д??????????????????á?

?????????????????????е????????????д?????????????????????????????????????飬д?????????????????Щ???顣???????????????д????????д?????????????????д?????????д????????????????????????????????д????????????????????????д?????????????????????????????????????????????

?????д Test Case

?????????????η??????????????д??????????????????????????????????????????????檔

???????????????????????????? ex47 ??????????????????????и?????????? tests/ex47_tests.rb ?????д???

?????????????????????ex47/lib/game.rb ??????????Щ?????????????????????????????????С class ???????????????????????


class Room

  attr_accessor :name?? :description?? :paths

  def initialize(name?? description)
    @name = name
    @description = description
    @paths = {}
  end

  def go(direction)
    @paths[direction]
  end

  def add_paths(paths)
    @paths.update(paths)
  end

end