class Bchess::Queen
Constants
- QUEEN_REACH
Public Instance Methods
can_move_to_field?(dcolumn, drow)
click to toggle source
Calls superclass method
Bchess::Piece#can_move_to_field?
# File lib/bchess/queen.rb, line 13 def can_move_to_field?(dcolumn, drow) super && ( by_line(dcolumn, drow, QUEEN_REACH) || by_diagonal(dcolumn, drow, QUEEN_REACH) ) end
initiialize(*args)
click to toggle source
Calls superclass method
# File lib/bchess/queen.rb, line 5 def initiialize(*args) super(args) end
name()
click to toggle source
# File lib/bchess/queen.rb, line 9 def name 'Q' end