aboutsummaryrefslogtreecommitdiff
path: root/maze.h
blob: fc0e489a4cb9d755a676796142a9de89333abd8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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