diff options
author | HampusM <hampus@hampusmat.com> | 2021-12-13 21:16:54 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-12-13 21:16:54 +0100 |
commit | af93edd8433634d82e855e9c9bcbca249a476977 (patch) | |
tree | 14577381b1bc101eb14080c13e624743c120a86e /maze.h | |
parent | 5afa8ec91fbbb8c20e2425d56d11cac8bd08c8a4 (diff) |
refactor: clean code
Diffstat (limited to 'maze.h')
-rw-r--r-- | maze.h | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -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 |