Module: Stockfish
- Defined in:
- lib/stockfish.rb,
lib/stockfish/engine.rb,
lib/stockfish/version.rb,
lib/stockfish/analysis_parser.rb
Defined Under Namespace
Classes: AnalysisParser, Engine, InvalidBinary, InvalidCommand, InvalidOption
Constant Summary collapse
- VERSION =
"0.3.1"
Class Method Summary collapse
Class Method Details
.analyze(fen, options = {}) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/stockfish.rb', line 7 def self.analyze(fen, = {}) multipv = .delete(:multipv) engine = Engine.new engine.multipv(multipv) if multipv AnalysisParser.new(engine.analyze(fen, )).parse end |