1 #ifndef SNAKE_SETDIRECTION_H 2 #define SNAKE_SETDIRECTION_H 15 TEST(Snake_setDirection, test1) {
27 bool retVal = snake.
init(begin, direction, length);
53 TEST(Snake_setDirection, test2) {
65 bool retVal = snake.
init(begin, direction, length);
88 #endif // SNAKE_SETDIRECTION_H
TEST(Snake_setDirection, test1)
method runs with normal parameters
bool setDirection(int dir)
The method to set the direction where the snake is heading.
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
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.
const int MVDOWN
snake's head is moving down