Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
game_statistics_in_time.h
Go to the documentation of this file.
1#ifndef GAME_STATISTICS_IN_TIME_H
2#define GAME_STATISTICS_IN_TIME_H
3
4#include "ccfwd.h"
5#include "game_statistics.h"
6
8{
9public:
11
12 void add(const game_controller& c);
13 void add(const game_statistics& s);
14
15 const auto& get() const noexcept { return m_statistics; }
16
17private:
18 std::vector<game_statistics> m_statistics;
19};
20
21
24
27
28
30
31#endif // GAME_STATISTICS_IN_TIME_H
The class that acts as a controller for game}.
Definition game_controller.h:31
Definition game_statistics_in_time.h:8
const auto & get() const noexcept
Definition game_statistics_in_time.h:15
game_statistics_in_time()
Definition game_statistics_in_time.cpp:8
void add(const game_controller &c)
Definition game_statistics_in_time.cpp:12
The statistics of a point in time of the game.
Definition game_statistics.h:13
void test_game_statistics_in_time()
Definition game_statistics_in_time.cpp:56
game_statistics_in_time create_test_game_statistics_in_time()
Create a game_statistics_in_time used for testing.
Definition game_statistics_in_time.cpp:22
game_statistics_in_time play_random_game_to_get_statistics_in_time(const int n_turns=2)
Play a random game, used for profiling.
Definition game_statistics_in_time.cpp:34