Class: BlackKnight

Inherits:
BlackPiece show all
Includes:
Knight
Defined in:
lib/knight.rb

Instance Attribute Summary

Attributes inherited from EmptySpace

#color

Instance Method Summary collapse

Methods included from Knight

#illegal

Methods included from Moves

#diagonal, #horizontal, #move, #vertical

Methods inherited from BlackPiece

#enemy_of?, #friend_of?, #initialize

Methods inherited from EmptySpace

#empty?, #enemy_of?, #friend_of?, #initialize, #place_on, #remove_from, #to_coord

Constructor Details

This class inherits a constructor from BlackPiece

Instance Method Details

#to_sObject



41
42
43
# File 'lib/knight.rb', line 41

def to_s
  "BK"
end