Files
snake2025/grid.h
2025-05-09 08:46:25 +02:00

19 lines
290 B
C

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