Class: Tak::Player
- Inherits:
-
Object
- Object
- Tak::Player
- Defined in:
- lib/tak/player.rb
Instance Method Summary collapse
-
#initialize(name, color) ⇒ Player
constructor
A new instance of Player.
Constructor Details
#initialize(name, color) ⇒ Player
Returns a new instance of Player.
3 4 5 6 |
# File 'lib/tak/player.rb', line 3 def initialize(name, color) @name = name @color = color end |