Browse Source

labyrinth

main^2
Joe Lukas Kalb 11 months ago
committed by Peter Wiebe
parent
commit
548f7e1e4f
  1. 7
      src/main/c/labyrinth.c
  2. 1
      src/main/c/labyrinth.h

7
src/main/c/labyrinth.c

@ -159,3 +159,10 @@ short calculate_lab_way(Field_State** field, unsigned short len_x, unsigned shor
return 1; return 1;
} }
void labyrinth(){
unsigned short x, y;
ask_lab_dimensions(&x, &y);
}

1
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); 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); 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); 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 #endif // TEST_H
Loading…
Cancel
Save