Added boosts system which change the snake speed

This commit is contained in:
2025-05-27 14:58:57 +02:00
parent 9c053fe61c
commit 9a754e94be
3 changed files with 64 additions and 6 deletions

2
grid.h
View File

@@ -21,7 +21,7 @@ typedef enum
FRUIT = 'f',
SNAKE = 's',
SNAKEHEAD = 'S',
SNAKETAIL = 't'
BOOST = 'b'
} Element;
Grid *allocate_grid(int n, int m);