parse_gamelog_score: Extract the scores from rbitr's 'evaluate_game()' output

View source: R/parse_gamelog.R

parse_gamelog_scoreR Documentation

Extract the scores from rbitr's evaluate_game() output

Description

parse_gamelog_score() is an internal function called by parse_gamelog().

Usage

parse_gamelog_score(gamelog, target, depth)

Arguments

gamelog

A list of engine output from rbitr's evaluate_game() function.

target

A single-element character vector of the output to return. Allowed values are 'score' for the evaluation in centipawns, 'pv' for the principal variation, or 'bestmove' for the best move.

depth

(Optional, default = NULL) A single-element integer vector indicating which search depth to return. The value must not be less than 1 or greater than the maximum depth reported by the engine. A value of NULL returns data for the maximum depth.

Details

Returns the engine's calculated evaluation (score) for each position in the game. See the documentation for parse_gamelog() for full details.

Value

A list of character vectors of the extracted scores for each position.

See Also

  • parse_gamelog()


dryguy/rbitr documentation built on Oct. 15, 2024, 6:18 a.m.