30 bool retVal = snake.
init(begin, direction, length);
54 short direction =
MVUP;
57 bool retVal = snake.
init(begin, direction, length);
84 bool retVal = snake.
init(begin, direction, length);
111 bool retVal = snake.
init(begin, direction, length);
138 bool retVal = snake.
init(begin, direction, length);
165 bool retVal = snake.
init(begin, direction, length);
178 #endif // SNAKE_INIT_H
TEST(Snake_init, test0)
Snake class object can be created.
bool init(Point begin, short direction, int length)
Initializes snake as an entity without ancoring it anywhere.
const int MVLEFT
snake's head is moving left
shared functions for testing
const int MVUP
snake's head is moving up
Describes the Snake entity of the game.
const int MVRIGHT
snake's head is moving right
Coordinates and style of the cell in console window.
Definitions and prototypes for Snake class.