Class: BlackStone
Instance Attribute Summary
Attributes inherited from Stone
Instance Method Summary collapse
-
#initialize(x, y) ⇒ BlackStone
constructor
A new instance of BlackStone.
Methods inherited from Stone
#==, #empty?, #group, #liberties, #place_on_board, #remove_from_board, #to_coord, #to_s, #to_sgf, #to_str
Constructor Details
#initialize(x, y) ⇒ BlackStone
Returns a new instance of BlackStone.
77 78 79 80 |
# File 'lib/stone.rb', line 77 def initialize(x, y) super @color = :black end |