medzera
This commit is contained in:
parent
c940ec9916
commit
4684bb2bde
@ -24,7 +24,7 @@ int solve_maze(char* maze, int size) {
|
|||||||
char maze2d[size][size];
|
char maze2d[size][size];
|
||||||
for (int y = 0; y < size; y++) {
|
for (int y = 0; y < size; y++) {
|
||||||
for (int x = 0; x < size; x++) {
|
for (int x = 0; x < size; x++) {
|
||||||
printf("%c ", maze[size * y + x]);
|
printf("%c", maze[size * y + x]);
|
||||||
maze2d[y][x] = maze[size * y + x] == 'x' ? 'x' : 0;
|
maze2d[y][x] = maze[size * y + x] == 'x' ? 'x' : 0;
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user