This commit is contained in:
Lukáš Dratva 2019-06-04 08:46:12 +02:00
parent adea577dec
commit 91d8077eda

View File

@ -1,3 +1,5 @@
////////////////////////////////////////////////////////////////////
#include "snake.h" #include "snake.h"
#include <stdlib.h> #include <stdlib.h>
@ -17,7 +19,7 @@ struct snake* new=calloc(sizeof(struct snake),1);
} }
////////////////////////////////////////////////////////////////////
struct snake* remove_snake(struct snake* snake){ struct snake* remove_snake(struct snake* snake){
@ -51,8 +53,7 @@ struct snake* remove_snake(struct snake* snake){
} }
////////////////////////////////////////////////////////////////////
void free_snake(struct snake* sn){ void free_snake(struct snake* sn){
@ -66,8 +67,7 @@ void free_snake(struct snake* sn){
} }
////////////////////////////////////////////////////////////////////
int step_state(struct state* st,enum direction dir,int width,int height){ int step_state(struct state* st,enum direction dir,int width,int height){
@ -149,3 +149,5 @@ struct snake* pos=st->snake;
return END_CONTINUE; return END_CONTINUE;
} }
////////////////////////////////////////////////////////////////////