Classifies chess openings with a search tree built from the SCID ECO data file
$ gem install eco-classifier
Or add it to your Gemfile
gem 'eco-classifier'
You can classify a list of moves
opening = EcoClassifier.classify_moves %w( d4 d5 c4 )
opening.name
# Queen's Gambit
Or classify a PGN directly
opening = EcoClassifier.classify_pgn "1.e4 e5 2.f4"
opening.name
# King's Gambit
MIT