Initial commit for tp2
This commit is contained in:
19
grid.h
Normal file
19
grid.h
Normal 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 */
|
||||
Reference in New Issue
Block a user