is snake v2
This commit is contained in:
parent
bab6423fb9
commit
b252054385
@ -45,11 +45,9 @@ int is_snake(struct snake* snake,int x,int y){
|
|||||||
if(pozicia->x == x && pozicia->y == y){
|
if(pozicia->x == x && pozicia->y == y){
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else{
|
pozicia = pozicia->next;
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int step_state(struct state* st){
|
int step_state(struct state* st){
|
||||||
|
Loading…
Reference in New Issue
Block a user