Improving count fruit function

This commit is contained in:
2025-05-19 16:15:53 +02:00
parent 7b0f8f28e0
commit 48c0bd0f96
3 changed files with 20 additions and 20 deletions

2
grid.h
View File

@@ -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 */