Improving count fruit function
This commit is contained in:
2
grid.h
2
grid.h
@@ -30,7 +30,7 @@ void draw_grid(Grid *g);
|
||||
void place_snake(Grid *g, struct SnakeStruct *snake);
|
||||
Element move_snake(struct SnakeStruct *snake, Grid *g);
|
||||
int count_nb_lines(FILE *stream);
|
||||
int count_fruits(const char *filename, Grid *g);
|
||||
int count_fruits(FILE *stream, Grid *g);
|
||||
void copy(const char *src, char *dst);
|
||||
|
||||
#endif /* GRID_H */
|
||||
Reference in New Issue
Block a user