Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Functions
action_number.cpp File Reference
#include "action_number.h"
#include <cassert>
#include <iostream>
#include <sstream>
Include dependency graph for action_number.cpp:

Functions

std::vector< action_numberget_all_action_numbers () noexcept
 Get all the action_numbers in increasing height.
 
action_number get_next (const action_number &n) noexcept
 Get the next action_number, e.g.
 
action_number get_previous (const action_number &n) noexcept
 Get the previous action_number, e.g.
 
void test_action_number ()
 Test this class and its members.
 
bool operator== (const action_number &lhs, const action_number &rhs) noexcept
 
bool operator< (const action_number &lhs, const action_number &rhs) noexcept
 
std::ostream & operator<< (std::ostream &os, const action_number &number) noexcept
 

Function Documentation

◆ get_all_action_numbers()

std::vector< action_number > get_all_action_numbers ( )
noexcept

Get all the action_numbers in increasing height.

◆ get_next()

action_number get_next ( const action_number n)
noexcept

Get the next action_number, e.g.

when having 2, this will be 3. For 4, this wil return 1

◆ get_previous()

action_number get_previous ( const action_number n)
noexcept

Get the previous action_number, e.g.

when having 2, this will be 1. For 1, this wil return 4

◆ operator<()

bool operator< ( const action_number lhs,
const action_number rhs 
)
noexcept

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const action_number number 
)
noexcept

◆ operator==()

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

◆ test_action_number()

void test_action_number ( )

Test this class and its members.