Class: NullStone

Inherits:
Stone show all
Defined in:
lib/stone.rb

Instance Attribute Summary

Attributes inherited from Stone

#color

Instance Method Summary collapse

Methods inherited from Stone

#==, #empty?, #group, #liberties, #place_on_board, #to_coord, #to_s, #to_sgf, #to_str

Constructor Details

#initialize(*args) ⇒ NullStone

Returns a new instance of NullStone.



91
92
93
# File 'lib/stone.rb', line 91

def initialize(*args)
  @x, @y = nil, nil
end

Instance Method Details

#remove_from_board(board) ⇒ Object



95
96
# File 'lib/stone.rb', line 95

def remove_from_board(board)
end

#to_sfgObject



98
99
100
# File 'lib/stone.rb', line 98

def to_sfg
  ""
end