Class: Stockshark::Engine::Line

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

Overview

One multipv rank's worth of a search result: its own score (exactly one of score_cp/score_mate is ever set, matching UCI itself — an engine never reports both for the same line) and principal variation.

Instance Attribute Summary collapse

Instance Attribute Details

#multipvObject

Returns the value of attribute multipv

Returns:

  • (Object)

    the current value of multipv



10
11
12
# File 'lib/stockshark/engine.rb', line 10

def multipv
  @multipv
end

#pvObject

Returns the value of attribute pv

Returns:

  • (Object)

    the current value of pv



10
11
12
# File 'lib/stockshark/engine.rb', line 10

def pv
  @pv
end

#score_cpObject

Returns the value of attribute score_cp

Returns:

  • (Object)

    the current value of score_cp



10
11
12
# File 'lib/stockshark/engine.rb', line 10

def score_cp
  @score_cp
end

#score_mateObject

Returns the value of attribute score_mate

Returns:

  • (Object)

    the current value of score_mate



10
11
12
# File 'lib/stockshark/engine.rb', line 10

def score_mate
  @score_mate
end