From f1770847de561b7892343fd876269ec1dd990eb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Korpesio?= Date: Thu, 20 Jan 2022 08:09:00 +0100 Subject: [PATCH] prvy --- sk1a/readme.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sk1a/readme.md b/sk1a/readme.md index f656121..c4ba955 100644 --- a/sk1a/readme.md +++ b/sk1a/readme.md @@ -19,16 +19,16 @@ return 1; if(issafe(maze, x, y, size) == 1) { // znazornenie stien maze[x * size + y] = '*'; - if (backtracking(maze, x, y + 1, size) == 1) { + if (backtracking(maze, x, y + 1, size) == 1) { //pohyb doprava return 1; } - if (backtracking(maze, x + 1, y, size) == 1) { + if (backtracking(maze, x + 1, y, size) == 1) { //pohyb dole return 1; } - if (backtracking(maze, x - 1, y, size) == 1) { + if (backtracking(maze, x - 1, y, size) == 1) { //pohyb dolava return 1; } - if (backtracking(maze, x, y - 1, size) == 1) { + if (backtracking(maze, x, y - 1, size) == 1) { //pohyb hore return 1; } maze[x * size + y] = ' '; @@ -37,5 +37,5 @@ return 1; } int solve_maze(char* maze, int size) { -return backtracking(maze, 0, 0, size); +return backtracking(maze, 0, 0, size); //volanie funkcie } \ No newline at end of file