Class: Player

Inherits:
Object
  • Object
show all
Defined in:
lib/player.rb

Direct Known Subclasses

Computer, Human

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePlayer

Returns a new instance of Player.



7
8
9
# File 'lib/player.rb', line 7

def initialize
 @choice = nil
end

Instance Attribute Details

#choiceObject

Returns the value of attribute choice.



5
6
7
# File 'lib/player.rb', line 5

def choice
  @choice
end