Class: WhiteKnight
- Inherits:
-
WhitePiece
- Object
- EmptySpace
- Piece
- WhitePiece
- WhiteKnight
- Includes:
- Knight
- Defined in:
- lib/knight.rb
Instance Attribute Summary
Attributes inherited from EmptySpace
Instance Method Summary collapse
Methods included from Knight
Methods included from Moves
#diagonal, #horizontal, #move, #vertical
Methods inherited from WhitePiece
#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 WhitePiece
Instance Method Details
#to_s ⇒ Object
32 33 34 |
# File 'lib/knight.rb', line 32 def to_s "WK" end |