#ifndef MAZE_H #define MAZE_H struct point { int x; int y; }; struct maze { int width; int height; int **map; struct point starting_point; struct point end_point; }; static inline struct point relative_point(struct point point, int x, int y) { struct point new_point; new_point.x = point.x + x; new_point.y = point.y + y; return new_point; } static inline int is_valid_maze_size(int size) { return size > 2 && size % 2 != 0; } #endif