lib/chess/board.rb
# Given the color, returns that color's king that is on the board
Given the color, returns that color's king that is on the board
Given the color returns that color ' s king that is on the board
def find_king(color)
      king = chess_pieces.select do |piece| 
        piece.class == King && piece.color == color
      end[0]
    end
def find_king ( color ) king = chess_pieces . select do | piece | piece . class == King && piece . color == color end [ 0 ] end
Given the color, returns that color's king that is on the board
Given the color returns that color ' s king that is on the board
color
<not_specific>