This commit is contained in:
Peter Petrek 2022-01-14 02:34:31 +01:00
parent c940ec9916
commit 4684bb2bde

View File

@ -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");