code c++ NumberCrush
More...
#include <iostream>
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <utility>
#include <iomanip>
|
bool | AtLeastThreeInARow (const CMat &Grid, CPosition &Pos, unsigned &HowMany) |
| Verification of 3 identicals values on the same line Method that allows to know the number of result of 3 identical figures in one line of the grid. More...
|
|
bool | AtLeastThreeInAColumn (const CMat &Grid, CPosition &Pos, unsigned &HowMany) |
| Verification of 3 identicals values on the same column Method that allows to know the number of result of 3 identical figures in one column of the grid. More...
|
|
void | Score (unsigned &ActualScore, unsigned &HowMany) |
| Displays the score Displays the score of your current game.
|
|
void | RemovalInColumn (CMat &Grid, const CPosition &Pos, unsigned HowMany) |
| Remove a column Remove a column after the player did a following of 3 same digits in a column of the grid.
|
|
void | RemovalInRow (CMat &Grid, const CPosition &Pos, unsigned HowMany) |
| Remove a line Remove a line after the player did a following of 3 same digits in a line of the grid.
|
|
void | MakeAMove (CMat &Grid, const CPosition &Pos, char Direction) |
| Make move a digit of the grid Allows you to move one digit of the grid with one of these adjacent digits.
|
|
int | main () |
| Program entry. More...
|
|
code c++ NumberCrush
- Author
- GAMELIA, GANGUET, GONZALEZ, JUY
- Version
- 1.3
- Date
- 12/01/2015 Projet code c++ for the game: "NumberCrush"
bool AtLeastThreeInAColumn |
( |
const CMat & |
Grid, |
|
|
CPosition & |
Pos, |
|
|
unsigned & |
HowMany |
|
) |
| |
Verification of 3 identicals values on the same column Method that allows to know the number of result of 3 identical figures in one column of the grid.
- Parameters
-
AtLeastThreeInAColumn | : Following of three identical numbers in column of the grid |
- Returns
- true if the grid has a series of 3 or more digits in a column of the grid, false otherwise
Checking the precense of 3 identical digits Method that allows to know the number of result of 3 identical figures in the grid
- Parameters
-
ThreeOrMore | : Following of three identical numbers in the grid |
- Returns
- true if the grid has series of 3 or more digits in the grid, false otherwise
bool AtLeastThreeInARow |
( |
const CMat & |
Grid, |
|
|
CPosition & |
Pos, |
|
|
unsigned & |
HowMany |
|
) |
| |
Verification of 3 identicals values on the same line Method that allows to know the number of result of 3 identical figures in one line of the grid.
- Parameters
-
AtLeastThreeInARow | : Following of three identical numbers in a line of the grid |
- Returns
- true if the grid has a series of 3 or more digits in a line of the grid, false otherwise
Checking the precense of 3 identical digits Method that allows to know the number of result of 3 identical figures in the grid
- Parameters
-
ThreeOrMore | : Following of three identical numbers in the grid |
- Returns
- true if the grid has series of 3 or more digits in the grid, false otherwise