aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-03-14 14:42:14 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-03-14 14:42:14 +0300
commit528841328da0114981ee6e8c6dbdde72b64fb284 (patch)
treee127cdab3debaa7e1a8e8b825c07ca85502681d2 /main.c
parent365f1baabae9b2ccb3df1b4a4821bff58611f2de (diff)
Fix stack + implement rbt_maze_map()
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 111c898..71e3b45 100644
--- a/main.c
+++ b/main.c
@@ -2,11 +2,11 @@
#include <signal.h>
#include <stdlib.h>
#include <stdio.h>
+#include <time.h>
#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();