Class: NullSpace

Inherits:
EmptySpace show all
Defined in:
lib/space.rb

Instance Attribute Summary collapse

Attributes inherited from EmptySpace

#color

Instance Method Summary collapse

Methods inherited from EmptySpace

#empty?, #enemy_of?, #friend_of?, #remove_from, #to_s

Constructor Details

#initializeNullSpace

Returns a new instance of NullSpace.



41
42
# File 'lib/space.rb', line 41

def initialize
end

Instance Attribute Details

#directionObject (readonly)

Returns the value of attribute direction.



40
41
42
# File 'lib/space.rb', line 40

def direction
  @direction
end

Instance Method Details

#place_on(board) ⇒ Object



48
49
# File 'lib/space.rb', line 48

def place_on(board)
end

#to_coordObject



44
45
46
# File 'lib/space.rb', line 44

def to_coord
  [nil, nil]
end