bool AtLeastThreeInAColumn(const CMat &Mat, CPosition &Pos, unsigned &HowMany)
Chek if there is at least 3 token in the same column.
bool AtLeastThreeInARow(const CMat &Mat, CPosition &Pos, unsigned &HowMany)
Chek if there is at least 3 token in the same row.
void RemovalInColumn(CMat &Mat, const CPosition &Pos, const unsigned &HowMany)
Remove "Howmany" same tokens starting from "Pos".
unsigned ComputeScore(const unsigned &HowMany)
Computer the score.
std::pair< unsigned, unsigned > CPosition
CPosition : a pair gathering the coordinates in the grid.
Struct containing all the game's parameters.
void RemovalInRow(CMat &Mat, const CPosition &Pos, const unsigned &HowMany)
Remove "Howmany" same tokens starting from "Pos".
std::vector< CVLine > CMat
CMat : alias to a game grid type.
void Menu(CPosition &Pos, char &Direction, const CMyParam &Params)
Display the menu according to the set of parameters.
void MakeAMove(CMat &Grid, const CPosition &Pos, const char &Direction, const CMyParam &Params)
Swap the token from its inital place to its final destination.
Definition of usefull types or aliases for the project.