class RubyGo::NullStone

This can be changed to a Pass object

Public Class Methods

new(color = :empty) click to toggle source
# File lib/ruby-go/stone.rb, line 36
def initialize(color = :empty)
  @x_coord = nil
  @y_coord = nil
  @color = color
end

Public Instance Methods

empty?() click to toggle source
# File lib/ruby-go/stone.rb, line 46
def empty?
  true
end
to_sgf() click to toggle source
# File lib/ruby-go/stone.rb, line 42
def to_sgf
  ";#{color.to_s[0].upcase}[]"
end