Class: Stockshark::Engine::AnalysisResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/stockshark/engine.rb

Overview

The full result of one #analyze call: the move the engine would actually play, the deepest ply reached, and one Line per multipv rank requested (ranks are 1-indexed and sorted, so lines.first is always the primary/best line). Raw and side-to-move-relative — unopinionated about which color that was.

Instance Attribute Summary collapse

Instance Attribute Details

#best_moveObject

Returns the value of attribute best_move

Returns:

  • (Object)

    the current value of best_move



17
18
19
# File 'lib/stockshark/engine.rb', line 17

def best_move
  @best_move
end

#depthObject

Returns the value of attribute depth

Returns:

  • (Object)

    the current value of depth



17
18
19
# File 'lib/stockshark/engine.rb', line 17

def depth
  @depth
end

#linesObject

Returns the value of attribute lines

Returns:

  • (Object)

    the current value of lines



17
18
19
# File 'lib/stockshark/engine.rb', line 17

def lines
  @lines
end