Class: Human

Inherits:
Player show all
Defined in:
lib/player.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Player

#initialize

Constructor Details

This class inherits a constructor from Player

Instance Attribute Details

#choiceObject

Returns the value of attribute choice.



14
15
16
# File 'lib/player.rb', line 14

def choice
  @choice
end

Instance Method Details

#make_choiceObject



16
17
18
# File 'lib/player.rb', line 16

def make_choice
  @choice = gets.chomp.downcase
end