Method: StudioGame::Player#initialize

Defined in:
lib/studio_game/player.rb

#initialize(name, health = 100) ⇒ Player

Returns a new instance of Player.



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

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