aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-03-19 12:42:05 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-03-19 12:42:05 +0300
commit055dd4d62b5c670272b18789c95e0e08b4b823c8 (patch)
tree0fd19986ac8e904d974a909bd3b84b46deee78cc
parent1abd010629001fd19a30f3da0d8bbd54a57df0ae (diff)
Add option to generate a new maze
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index c25c257..c67e0aa 100644
--- a/main.c
+++ b/main.c
@@ -55,6 +55,9 @@ int main(void) {
case 'l': offset_x += 2; break;
case 'j': offset_y += 1; break;
case 'k': offset_y -= 1; break;
+ case 'n':
+ map = rbt_maze_map(width, height, (unsigned int) time(NULL));
+ break;
case 'q': endwin(); return 0;
}
}