36 char **
map_gen_onion(
int xsize,
int ysize,
int option,
int layers);
57 while (maze[*cx][*cy] == 0) {
61 while (maze[*cx][*cy+1] == 0) {
93 for (i = 0; i < xsize; i++)
94 for (j = 0; j < ysize; j++) {
95 if (maze[i][j] ==
'C') {
105 if (ty < 2 || tx < 2 || tx > xsize-2 || ty > ysize-2) {
110 maze[tx][ty-1] =
'#';
111 maze[tx-1][ty] =
'D';
114 while ((tx > 2) && maze[tx-1][ty]) {
121 while (((ty+1) < ysize) && maze[tx][ty+1]) {
128 while (((tx+1) < xsize) && maze[tx+1][ty]) {
139 maze[xsize-2][1] =
'<';
142 maze[xsize-2][1] =
'>';
void find_top_left_corner(char **maze, int *cx, int *cy)
char ** make_square_spiral_layout(int xsize, int ysize, int _unused_option, int _unused_layers)
char ** map_gen_onion(int xsize, int ysize, int option, int layers)
int make_wall(char **maze, int x, int y, int dir)