Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Public Member Functions | List of all members
game_statistics Class Reference

The statistics of a point in time of the game. More...

#include <game_statistics.h>

Public Member Functions

 game_statistics (const game_controller &c)
 
 game_statistics (const std::map< game_statistic_type, std::map< side, double > > &s)
 
double calc_relative (const game_statistic_type s) const
 Calculate the relative value between the two players for a statistic, where 0.5 denotes 'equally much'.
 
double get (const game_statistic_type stat, const side s) const
 

Detailed Description

The statistics of a point in time of the game.

Constructor & Destructor Documentation

◆ game_statistics() [1/2]

game_statistics::game_statistics ( const game_controller c)

◆ game_statistics() [2/2]

game_statistics::game_statistics ( const std::map< game_statistic_type, std::map< side, double > > &  s)

Member Function Documentation

◆ calc_relative()

double game_statistics::calc_relative ( const game_statistic_type  s) const

Calculate the relative value between the two players for a statistic, where 0.5 denotes 'equally much'.

LHS RHS f
0.0 0.0 0.5
0.0 0.5 0.0
0.5 0.0 1.0
0.5 0.5 0.5

◆ get()

double game_statistics::get ( const game_statistic_type  stat,
const side  s 
) const

The documentation for this class was generated from the following files: