Class: NeuroGammon::BasePlayer
- Inherits:
-
Object
- Object
- NeuroGammon::BasePlayer
- Defined in:
- lib/neuro_gammon/base_player.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize ⇒ BasePlayer
constructor
A new instance of BasePlayer.
Constructor Details
#initialize ⇒ BasePlayer
Returns a new instance of BasePlayer.
12 13 14 15 |
# File 'lib/neuro_gammon/base_player.rb', line 12 def initialize @id=UUIDTools::UUID.random_create.to_s @name=self.class.name end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
9 10 11 |
# File 'lib/neuro_gammon/base_player.rb', line 9 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
10 11 12 |
# File 'lib/neuro_gammon/base_player.rb', line 10 def name @name end |