Ahmed Adamjee
/
SnakeVSBlock
Snake vs Block Game to be run upon K64F.
Diff: GameObjects/Snake/Snake-test.h
- Revision:
- 102:79d7bff6543f
- Parent:
- 101:5108621b207f
--- a/GameObjects/Snake/Snake-test.h Thu May 09 11:23:16 2019 +0000 +++ b/GameObjects/Snake/Snake-test.h Thu May 09 14:31:39 2019 +0000 @@ -7,7 +7,7 @@ ///////////// prototypes ////////////// /** - * @brief Check that Snake object goes to correct position when moved and/ when collides. + * @brief Checks that Snake object goes to correct position when moved and/ when collides. * @returns true if all the tests passed. */ bool Snake_test_movement(); @@ -54,7 +54,7 @@ */ bool check_food_collision_and_relative_movement(); -/////////////// object /////////////// +/////////////// objects /////////////// Snake snake; //GLOBALS// @@ -62,11 +62,7 @@ int immobile_bead_n[10]; //each element in this array represents the beed number in the snake. bool success_flag; //stores success / failure from a test. - /** - * @brief Check that Snake object goes to correct position when moved and/ when collides. - * - * @returns true if all the tests passed - */ + bool Snake_test_movement() { success_flag = true;