Commit 6317fec5 authored by Nelson Phillips's avatar Nelson Phillips

autosave

parent cbf98761
......@@ -25,6 +25,9 @@ vector <Body> parts;
if((input == 'd'|| input == 'D')&& direction != 4 )
direction = 2;
if(direction == 1){
x--;
for ( int count = 0; count < parts.size(); count++){
......@@ -149,7 +152,7 @@ if (grid [x][y] == grid[h][o] ){
}
Body::Body(int xCord, int yCord){
Body::Body(int& xCord, int& yCord){
x = xCord;
y = yCord;
}
......
......@@ -33,7 +33,7 @@ class Snake {
class Body {
public:
Body(int xCord, int yCord);
Body(int& xCord, int& yCord);
int getX();
int getY();
void changeX(bool updown);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment