From ce9b9eab96809fdd4cb6828ef3345c4d57e9bb61 Mon Sep 17 00:00:00 2001 From: Joe Lukas Kalb Date: Tue, 6 Feb 2024 19:43:52 +0100 Subject: [PATCH] labyrinth --- src/main/c/labyrinth.c | 7 +++++++ src/main/c/labyrinth.h | 1 + 2 files changed, 8 insertions(+) diff --git a/src/main/c/labyrinth.c b/src/main/c/labyrinth.c index 7f3d89f..70b3f74 100644 --- a/src/main/c/labyrinth.c +++ b/src/main/c/labyrinth.c @@ -159,3 +159,10 @@ short calculate_lab_way(Field_State** field, unsigned short len_x, unsigned shor return 1; } +void labyrinth(){ + unsigned short x, y; + + ask_lab_dimensions(&x, &y); + +} + diff --git a/src/main/c/labyrinth.h b/src/main/c/labyrinth.h index fc6001c..8e9f178 100644 --- a/src/main/c/labyrinth.h +++ b/src/main/c/labyrinth.h @@ -14,5 +14,6 @@ void ask_lab_dimensions(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); void ask_lab_walls(Field_State** field, unsigned short len_x, unsigned short len_y); short calculate_lab_way(Field_State** field, unsigned short len_x, unsigned short len_y, unsigned short x, unsigned short y); +void labyrinth(); #endif // TEST_H