Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Enumerations | Functions
side.h File Reference
#include <iosfwd>
#include <random>
#include <string>
#include <vector>
Include dependency graph for side.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  side { lhs , rhs }
 The side the player/piece is on. More...
 

Functions

side create_random_side (std::default_random_engine &rng_engine)
 Create a random game_coordinat.
 
std::vector< sideget_all_sides () noexcept
 Get all sides.
 
side get_other_side (const side s) noexcept
 
void test_side ()
 Test this class and its free functions.
 
std::string to_str (const side &s) noexcept
 
std::ostream & operator<< (std::ostream &os, const side s) noexcept
 

Enumeration Type Documentation

◆ side

enum class side
strong

The side the player/piece is on.

Enumerator
lhs 
rhs 

Function Documentation

◆ create_random_side()

side create_random_side ( std::default_random_engine &  rng_engine)

Create a random game_coordinat.

◆ get_all_sides()

std::vector< side > get_all_sides ( )
noexcept

Get all sides.

◆ get_other_side()

side get_other_side ( const side  s)
noexcept

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const side  s 
)
noexcept

◆ test_side()

void test_side ( )

Test this class and its free functions.

◆ to_str()

std::string to_str ( const side s)
noexcept