app/models/bishop.rb
class Bishop < Piece
after_create :icon
def icon
# if color == "White"
# '♗'
# else
# '♝'
# end
'♝'
end
def valid_move?(to_x, to_y)
return false if friendly_piece_on_square?(to_x, to_y)
return false if self.is_obstructed?(to_x, to_y)
diagonal_move?(to_x, to_y)
end
end