43 const auto&
get_index() const noexcept {
return m_index; };
51 void reset() noexcept;
97std::ostream& operator<<(std::ostream& os, const
replay& r) noexcept;
The collected in-game times of actions, in chrononical order.
Definition action_history.h:17
A change of in_game_time}.
Definition delta_t.h:12
The class that acts as a controller for game}.
Definition game_controller.h:31
const game & get_game() const noexcept
Get the game.
Definition game_controller.h:48
Definition game_statistics_in_time.h:8
The in-game time, in chess moves.
Definition in_game_time.h:16
A copyable read-only value.
Definition read_only.h:14
const T & get_value() const
Definition read_only.h:21
A replay.
Definition replay.h:23
const auto & get_game_controller() const noexcept
Get the current state of the game.
Definition replay.h:40
const auto & get_initial_game_controller() const noexcept
Get the current state of the game.
Definition replay.h:46
void reset() noexcept
Rewind back to the start.
Definition replay.cpp:170
const auto & get_game() const noexcept
Get the current state of the game.
Definition replay.h:37
const auto & get_action_history() const noexcept
Get the history of actions, from a replay.
Definition replay.h:34
const auto & get_index() const noexcept
The index of the next move to do in the action history.
Definition replay.h:43
void do_move(const delta_t &dt=delta_t(1.0))
Do a move or do nothing, for 1 time unit.
Definition replay.cpp:24
bool is_done() const noexcept
Definition replay.cpp:137
A chess square.
Definition square.h:58
int get_n_moves(const replay &r) noexcept
Get the number of moves in the replay.
Definition replay.cpp:110
const in_game_time & get_in_game_time(const replay &r) noexcept
Definition replay.cpp:103
replay get_played_scholars_mate()
Definition replay.cpp:115
bool is_piece_at(const replay &r, const square &coordinat)
Determine if there is a piece at the coordinat.
Definition replay.cpp:165
void test_replay()
Test this class and its free functions.
Definition replay.cpp:176
game_statistics_in_time extract_game_statistics_in_time(const replay &r, const delta_t &dt)
Extract the game statistics over time.
Definition replay.cpp:75