Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Functions
replay.cpp File Reference
#include "replay.h"
#include "game.h"
#include "game_controller.h"
#include "pieces.h"
#include "pgn_game_string.h"
#include <cassert>
#include <sstream>
Include dependency graph for replay.cpp:

Functions

game_statistics_in_time extract_game_statistics_in_time (const replay &r_original, const delta_t &dt)
 Extract the game statistics over time.
 
const in_game_timeget_in_game_time (const replay &r) noexcept
 
int get_n_moves (const replay &r) noexcept
 Get the number of moves in the replay.
 
replay get_played_scholars_mate ()
 
bool is_piece_at (const replay &r, const square &coordinate)
 Determine if there is a piece at the coordinat.
 
void test_replay ()
 Test this class and its free functions.
 
bool operator== (const replay &lhs, const replay &rhs) noexcept
 
std::ostream & operator<< (std::ostream &os, const replay &r) noexcept
 

Function Documentation

◆ extract_game_statistics_in_time()

game_statistics_in_time extract_game_statistics_in_time ( const replay r,
const delta_t dt 
)

Extract the game statistics over time.

Parameters
ra replayer
dtthe interval at which the statistics are extracted

◆ get_in_game_time()

const in_game_time & get_in_game_time ( const replay r)
noexcept

◆ get_n_moves()

int get_n_moves ( const replay r)
noexcept

Get the number of moves in the replay.

◆ get_played_scholars_mate()

replay get_played_scholars_mate ( )

◆ is_piece_at()

bool is_piece_at ( const replay r,
const square coordinate 
)

Determine if there is a piece at the coordinat.

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const replay r 
)
noexcept

◆ operator==()

bool operator== ( const replay lhs,
const replay rhs 
)
noexcept

◆ test_replay()

void test_replay ( )

Test this class and its free functions.