57 while (maze[*cx][*cy] == 0) {
61 while (maze[*cx][*cy+1] == 0) {
95 for (i = 0; i < xsize; i++)
96 for (j = 0; j < ysize; j++) {
97 if (maze[i][j] ==
'C') {
107 if (ty < 2 || tx < 2 || tx > xsize-2 || ty > ysize-2) {
112 maze[tx][ty-1] =
'#';
113 maze[tx-1][ty] =
'D';
116 while ((tx > 2) && maze[tx-1][ty]) {
123 while (((ty+1) < ysize) && maze[tx][ty+1]) {
130 while (((tx+1) < xsize) && maze[tx+1][ty]) {
141 maze[xsize-2][1] =
'<';
144 maze[xsize-2][1] =
'>';