search.rb
# Determines the move type of a SAN string
Determines the move type of a SAN string
Determines the move type of a SAN string
def make_type(san)
    type = san.include?('x') ? "Capture" : (san.include?("O-O") ? "Castle" : "Quiet")
    type += " e.p." if san.include?('e.p.')
    type += " promotion" if san.include?('=Q')
    type
  end
def make_type ( san ) type = san . include? ( 'x' ) ? "Capture" : ( san . include? ( "O-O" ) ? "Castle" : "Quiet" ) type += " e.p." if san . include? ( 'e.p.' ) type += " promotion" if san . include? ( '=Q' ) type end
Determines the move type of a SAN string
Determines the move type of a SAN string
san
<not_specific>