lib/chess/board.rb
# Returns true if the color pawn is making a valid en passant move
Returns true if the color pawn is making a valid en passant move
Returns true if the color pawn is making a valid en passant move
def valid_en_passant_move?(color, from_row, to_column)
      possible_pawn = @state[from_row][to_column]
      possible_pawn.class == Pawn && possible_pawn.color != color &&
      possible_pawn.allow_en_passant == true
    end
def valid_en_passant_move? ( color , from_row , to_column ) possible_pawn = @state [ from_row ] [ to_column ] possible_pawn . class == Pawn && possible_pawn . color != color && possible_pawn . allow_en_passant == true end
Returns true if the color pawn is making a valid en passant move
Returns true if the color pawn is making a valid en passant move
color
<not_specific>
from_row
<not_specific>
to_column
<not_specific>