Module: EcoClassifier
- Defined in:
- lib/eco_classifier.rb,
lib/eco_classifier/version.rb
Constant Summary collapse
- VERSION =
"0.5"
Class Method Summary collapse
Class Method Details
.classify_moves(moves) ⇒ Object
13 14 15 |
# File 'lib/eco_classifier.rb', line 13 def self.classify_moves(moves) opening_tree.get_opening moves end |
.classify_pgn(pgn) ⇒ Object
17 18 19 |
# File 'lib/eco_classifier.rb', line 17 def self.classify_pgn(pgn) opening_tree.get_opening_from_pgn pgn end |
.opening_tree ⇒ Object
6 7 8 9 10 11 |
# 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 |