From 528841328da0114981ee6e8c6dbdde72b64fb284 Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Sat, 14 Mar 2026 14:42:14 +0300 Subject: Fix stack + implement rbt_maze_map() --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 111c898..71e3b45 100644 --- a/main.c +++ b/main.c @@ -2,11 +2,11 @@ #include #include #include +#include #include "map.h" #include "structs.h" // So, TODO for now: -// - Implement a stack // - Implement a maze algorithm to test my A* algorithm with // - Implement the A* algorithm @@ -35,8 +35,8 @@ int main(void) { noecho(); // Don't echo characters initialize_colors(); - Map map = rbt_maze_map(20, 10); - Position fake_player_position_to_pass_into_draw_map = {0, 0}; + Map map = rbt_maze_map(20, 10, (unsigned int) time(NULL)); + Position fake_player_position_to_pass_into_draw_map = {11, 21}; draw_map(map, 20*2-1, 10*2-1, fake_player_position_to_pass_into_draw_map); getch(); -- cgit v1.2.3