Class: RubyGo::NullStone
Overview
This can be changed to a Pass object
Constant Summary
Constants inherited from Stone
Instance Attribute Summary
Attributes inherited from Stone
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(color = :empty) ⇒ NullStone
constructor
A new instance of NullStone.
- #to_sgf ⇒ Object
Methods inherited from Stone
Constructor Details
#initialize(color = :empty) ⇒ NullStone
Returns a new instance of NullStone.
36 37 38 39 40 |
# File 'lib/ruby-go/stone.rb', line 36 def initialize(color = :empty) @x_coord = nil @y_coord = nil @color = color end |
Instance Method Details
#empty? ⇒ Boolean
46 47 48 |
# File 'lib/ruby-go/stone.rb', line 46 def empty? true end |
#to_sgf ⇒ Object
42 43 44 |
# File 'lib/ruby-go/stone.rb', line 42 def to_sgf ";#{color.to_s[0].upcase}[]" end |