Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
side.h
Go to the documentation of this file.
1#ifndef SIDE_H
2#define SIDE_H
3
4#include <iosfwd>
5#include <random>
6#include <string>
7#include <vector>
8
10enum class side
11{
12 lhs, // left-hand side
13 rhs // right-hand side
14};
15
18 std::default_random_engine& rng_engine
19);
20
22std::vector<side> get_all_sides() noexcept;
23
24side get_other_side(const side s) noexcept;
25
27void test_side();
28
29std::string to_str(const side& s) noexcept;
30
31std::ostream& operator<<(std::ostream& os, const side s) noexcept;
32
33#endif // SIDE_H
void test_side()
Test this class and its free functions.
Definition side.cpp:39
std::vector< side > get_all_sides() noexcept
Get all sides.
Definition side.cpp:23
side get_other_side(const side s) noexcept
Definition side.cpp:32
side create_random_side(std::default_random_engine &rng_engine)
Create a random game_coordinat.
Definition side.cpp:7
std::string to_str(const side &s) noexcept
Definition side.cpp:74
side
The side the player/piece is on.
Definition side.h:11