Method: TreasureHunter::Player#found_treasures
- Defined in:
- lib/treasure_hunter/player.rb
#found_treasures(treasure) ⇒ Object
26 27 28 29 30 31 |
# File 'lib/treasure_hunter/player.rb', line 26 def found_treasures(treasure) @found_treasures[treasure.name] += treasure.points puts "#{@name} found a #{treasure.name} worth #{treasure.points} points" puts "#{@name}'s treasure: #{@found_treasures}" end |