Initial commit for tp2

This commit is contained in:
2025-05-09 08:46:25 +02:00
parent cc53a75b39
commit a9ed5e2e01
73 changed files with 155 additions and 27431 deletions

19
grid.h Normal file
View File

@@ -0,0 +1,19 @@
#ifndef GRID_H
#define GRID_H
#include <MLV/MLV_all.h>
#define NBL 22
#define NBC 36
typedef enum {
WALL = 'w',
EMPTY = ' ',
FRUIT = 'f'
} Element;
void debug(char grid[NBL][NBC+1]);
int compute_size(int w, int h);
void draw_grid(char grid[NBL][NBC+1]);
#endif /* GRID_H */