Class: WhiteQueen

Inherits:
WhitePiece show all
Includes:
Queen
Defined in:
lib/queen.rb

Instance Attribute Summary

Attributes inherited from EmptySpace

#color

Instance Method Summary collapse

Methods included from Queen

#illegal

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_sObject



31
32
33
# File 'lib/queen.rb', line 31

def to_s
  "WQ"
end