Class: RubyGo::WhiteStone

Inherits:
Stone
  • Object
show all
Defined in:
lib/ruby-go/stone.rb

Instance Attribute Summary

Attributes inherited from Stone

#color

Instance Method Summary collapse

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) ⇒ WhiteStone

Returns a new instance of WhiteStone.



85
86
87
88
# File 'lib/ruby-go/stone.rb', line 85

def initialize(x, y)
  super
  @color = :white
end