From af93edd8433634d82e855e9c9bcbca249a476977 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 13 Dec 2021 21:16:54 +0100 Subject: refactor: clean code --- maze.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 maze.h (limited to 'maze.h') diff --git a/maze.h b/maze.h new file mode 100644 index 0000000..fc0e489 --- /dev/null +++ b/maze.h @@ -0,0 +1,24 @@ +#ifndef MAZE_H +#define MAZE_H + +#include "position_stack.h" + +struct MazeSize +{ + int width; + int height; +}; + +struct Maze +{ + char ***grid; + struct MazeSize size; +}; + +struct Maze maze_create(struct MazeSize size, char *wall); + +void maze_excavate(struct Maze maze, struct Position start_pos); + +void maze_print(char ***maze, int width, int height); + +#endif \ No newline at end of file -- cgit v1.2.3-18-g5258