Skip to content

Commit

Permalink
Update snake.cpp
Browse files Browse the repository at this point in the history
Chaned enum name for consistency
  • Loading branch information
AlexHodgson committed Sep 26, 2020
1 parent 7c65b9c commit 41730e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snake/snake.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const int MAX_TAIL_LENGTH = 100; // End game if 100 fruits are eaten

int score;
bool game_over, playing;
enum eDirection{ STOP = 0, LEFT, RIGHT, UP, DOWN };
enum e_direction{ STOP = 0, LEFT, RIGHT, UP, DOWN };


//Holds info on the snake and its tail
Expand All @@ -32,7 +32,7 @@ class SnakeHead

int x;
int y;
eDirection dir;
e_direction dir;
int tail_x[MAX_TAIL_LENGTH];
int tail_y[MAX_TAIL_LENGTH];

Expand Down

0 comments on commit 41730e2

Please sign in to comment.