1 #ifndef LABYRINTH_ADDSNAKE_H 2 #define LABYRINTH_ADDSNAKE_H 17 TEST(Labyrinth_addSnake, test1) {
27 bool retVal = snake.
init(begin, direction, lenght);
57 TEST(Labyrinth_addSnake, test2) {
65 bool retVal = snake.
init(begin, direction, lenght);
96 TEST(Labyrinth_addSnake, test3) {
104 bool retVal = snake.
init(begin, direction, lenght);
120 retVal = labyrinth.
addSnake(&snake);
131 #endif // LABYRINTH_ADDSNAKE_H
class for containing and displaying the game field
Definitions and prototypes for Labyrinth class.
bool setLabyrinth(Point dimensions)
Sets the default values fro the variables as well as generating the labyritnh array with borders...
TEST(Labyrinth_addSnake, test1)
method runs with normal parameters
bool init(Point begin, short direction, int length)
Initializes snake as an entity without ancoring it anywhere.
shared functions for testing
Describes the Snake entity of the game.
bool addSnake(Snake *snake)
Adding snake to the laburinth and getting the host snake(firest added snake)
const int MVRIGHT
snake's head is moving right
Coordinates and style of the cell in console window.
const int MVDOWN
snake's head is moving down