Method: StudioGame::Player#initialize

Defined in:
lib/studio_game/player.rb

#initialize(name, health = 100) ⇒ Player

Returns a new instance of Player.



11
12
13
14
15
# File 'lib/studio_game/player.rb', line 11

def initialize(name, health=100)
    @name = name.capitalize
    @health = health
    @found_treasures = Hash.new(0)
end