module EcoClassifier
Constants
- VERSION
Public Class Methods
classify_moves(moves)
click to toggle source
# File lib/eco_classifier.rb, line 13 def self.classify_moves(moves) opening_tree.get_opening moves end
classify_pgn(pgn)
click to toggle source
# File lib/eco_classifier.rb, line 17 def self.classify_pgn(pgn) opening_tree.get_opening_from_pgn pgn end
opening_tree()
click to toggle source
# File lib/eco_classifier.rb, line 6 def self.opening_tree return @@opening_tree if defined? @@opening_tree @@opening_tree = OpeningTree.new @@opening_tree.generate! @@opening_tree end