From 435fe6dc4766aeb2471a1477b15c2cdb322bdde9 Mon Sep 17 00:00:00 2001 From: Joe Lukas Kalb Date: Tue, 6 Feb 2024 19:35:39 +0100 Subject: [PATCH] refactoring: wall --> get_wall_input --- src/main/c/labyrinth.c | 2 +- src/main/c/labyrinth.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/c/labyrinth.c b/src/main/c/labyrinth.c index 690f831..06def76 100644 --- a/src/main/c/labyrinth.c +++ b/src/main/c/labyrinth.c @@ -26,7 +26,7 @@ void ask_lab_dimensions(unsigned short *len_x, unsigned short *len_y){ *len_y = get_natural_number("Bitte gib die y-Laenge des Labyrinthes an:\n"); } -short wall(unsigned short *x, unsigned short *y, unsigned short len_x, unsigned short len_y){ +short get_wall_input(unsigned short *x, unsigned short *y, unsigned short len_x, unsigned short len_y){ char answer; printf("Moechten Sie die Koordinaten einer weiteren Labyrinthwand angeben? (y/n)\n"); scanf(" %c", &answer); diff --git a/src/main/c/labyrinth.h b/src/main/c/labyrinth.h index b2160ff..c50580c 100644 --- a/src/main/c/labyrinth.h +++ b/src/main/c/labyrinth.h @@ -11,6 +11,6 @@ short lab_can_move(Field_State** field, unsigned short x, unsigned short y, Dire void show_solution(Field_State** field, unsigned short len_x, unsigned short len_y); unsigned short get_natural_number(char text[]); void ask_lab_dimensions(unsigned short *len_x, unsigned short *len_y); -short wall(unsigned short *x, unsigned short *y, unsigned short len_x, unsigned short len_y); +short get_wall_input(unsigned short *x, unsigned short *y, unsigned short len_x, unsigned short len_y); #endif // TEST_H