Class: GenericPlayer

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

Direct Known Subclasses

AIPlayer, HotseatPlayer

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sym) ⇒ GenericPlayer

Returns a new instance of GenericPlayer.



4
5
6
# File 'lib/fiveinarow/generic_player.rb', line 4

def initialize(sym)
  @sym = sym
end

Instance Attribute Details

#symObject

Returns the value of attribute sym.



2
3
4
# File 'lib/fiveinarow/generic_player.rb', line 2

def sym
  @sym
end