lib/chess/game.rb
# Outputs if the king is in check or not
Outputs if the king is in check or not
Outputs if the king is in check or not
def output_if_checked
      if @board.check?(@turn.color, @board.find_king(@turn.color).location)
        puts "Your king is in check."
      end
    end
def output_if_checked if @board . check? ( @turn . color , @board . find_king ( @turn . color ) . location ) puts "Your king is in check." end end
Outputs if the king is in check or not
Outputs if the king is in check or not