Class: BlackBishop
- Inherits:
-
BlackPiece
- Object
- EmptySpace
- Piece
- BlackPiece
- BlackBishop
- Includes:
- Bishop
- Defined in:
- lib/bishop.rb
Instance Attribute Summary
Attributes inherited from EmptySpace
Instance Method Summary collapse
Methods included from Bishop
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_s ⇒ Object
40 41 42 |
# File 'lib/bishop.rb', line 40 def to_s "BB" end |