class Bchess::Bishop

Constants

BISHOP_REACH

Public Instance Methods

can_move_to_field?(dcolumn, drow) click to toggle source
Calls superclass method
# File lib/bchess/bishop.rb, line 13
def can_move_to_field?(dcolumn, drow)
  super && by_diagonal(dcolumn, drow, BISHOP_REACH)
end
initiialize(*args) click to toggle source
Calls superclass method
# File lib/bchess/bishop.rb, line 5
def initiialize(*args)
  super(args)
end
name() click to toggle source
# File lib/bchess/bishop.rb, line 9
def name
  'B'
end