![]() |
Conquer Chess
Chess and Starcraft combined
|
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 |
The statistics of a point in time of the game.
| game_statistics::game_statistics | ( | const game_controller & | c | ) |
| game_statistics::game_statistics | ( | const std::map< game_statistic_type, std::map< side, double > > & | s | ) |
| 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 |
| double game_statistics::get | ( | const game_statistic_type | stat, |
| const side | s | ||
| ) | const |