libscid 0.1.0
Chess applications made easy.
Loading...
Searching...
No Matches
scid::database::TreeNode Struct Reference

Public Member Functions

 TreeNode (scid::core::FullMove m)
 
void add (scid::core::resultT result, int eloW, int eloB, unsigned year)
 
int score () const
 
double eloPerformance () const
 
double avgElo () const
 
double avgYear () const
 
double percDraws () const
 

Static Public Member Functions

static auto cmp_ngames_desc ()
 

Public Attributes

unsigned long long eloWhiteSum = 0
 
unsigned long long eloBlackSum = 0
 
unsigned long long yearSum = 0
 
gamenumT freq [scid::core::NUM_RESULT_TYPES] = {}
 
gamenumT eloCount = 0
 
gamenumT yearCount = 0
 
scid::core::FullMove move
 

Member Function Documentation

◆ score()

int scid::database::TreeNode::score ( ) const
inline
Returns
a value in the range [0, 1000] representing the score percentage from the white prospective (999 = white won 99.9% of the games).

The documentation for this struct was generated from the following file: