From 91d8077eda9756fb4689e9fb45ca46952a0b9488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Dratva?= Date: Tue, 4 Jun 2019 08:46:12 +0200 Subject: [PATCH] fungujee --- pvjc19cv9/snake.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pvjc19cv9/snake.c b/pvjc19cv9/snake.c index fd23607..bc08ad9 100644 --- a/pvjc19cv9/snake.c +++ b/pvjc19cv9/snake.c @@ -1,3 +1,5 @@ +//////////////////////////////////////////////////////////////////// + #include "snake.h" #include @@ -17,7 +19,7 @@ struct snake* new=calloc(sizeof(struct snake),1); } - +//////////////////////////////////////////////////////////////////// struct snake* remove_snake(struct snake* snake){ @@ -51,8 +53,7 @@ struct snake* remove_snake(struct snake* snake){ } - - +//////////////////////////////////////////////////////////////////// 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){ @@ -149,3 +149,5 @@ struct snake* pos=st->snake; return END_CONTINUE; } + +////////////////////////////////////////////////////////////////////